From 9506813dc2263dd71a421e16cb99e6d2cec4ff72 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Mon, 4 Feb 2019 09:27:12 +0100 Subject: [PATCH] Only propagate a MediaStopEvent when the awaited player actually stops --- platypush/plugins/media/mplayer.py | 2 -- platypush/plugins/media/webtorrent.py | 1 - 2 files changed, 3 deletions(-) diff --git a/platypush/plugins/media/mplayer.py b/platypush/plugins/media/mplayer.py index 585fe2b05e..c145c55744 100644 --- a/platypush/plugins/media/mplayer.py +++ b/platypush/plugins/media/mplayer.py @@ -179,8 +179,6 @@ class MediaMplayerPlugin(MediaPlugin): except: pass self._mplayer = None - bus.post(MediaStopEvent()) - if not wait_for_response: return diff --git a/platypush/plugins/media/webtorrent.py b/platypush/plugins/media/webtorrent.py index 0a049144fe..b90cab3b9b 100644 --- a/platypush/plugins/media/webtorrent.py +++ b/platypush/plugins/media/webtorrent.py @@ -175,7 +175,6 @@ class MediaWebtorrentPlugin(MediaPlugin): self._webtorrent_process.wait() try: self._webtorrent_process.kill() except: pass - bus.post(MediaStopEvent()) self._webtorrent_process = None