diff --git a/platypush/common/gstreamer/__init__.py b/platypush/common/gstreamer/__init__.py index 39f4914cbc..05b9c9eda6 100644 --- a/platypush/common/gstreamer/__init__.py +++ b/platypush/common/gstreamer/__init__.py @@ -77,7 +77,8 @@ class Pipeline: def stop(self): self.pipeline.set_state(Gst.State.NULL) - self.loop.stop() + if self.loop: + self.loop.stop() self.loop = None def get_volume(self) -> float: