diff --git a/platypush/backend/camera/pi.py b/platypush/backend/camera/pi.py index 45250aa1df..47ef43061a 100644 --- a/platypush/backend/camera/pi.py +++ b/platypush/backend/camera/pi.py @@ -79,7 +79,7 @@ class CameraPiBackend(Backend): try: self.camera.start_recording(connection, format='h264') - self.camera.stop_recording_event.wait() + self.stop_recording_event.wait() self.logger.info('Stopping camera recording') except ConnectionError as e: pass