Only propagate a MediaStopEvent when the awaited player actually stops

This commit is contained in:
Fabio Manganiello 2019-02-04 09:27:12 +01:00
parent 05abc86b90
commit 9506813dc2
2 changed files with 0 additions and 3 deletions

View File

@ -179,8 +179,6 @@ class MediaMplayerPlugin(MediaPlugin):
except: pass
self._mplayer = None
bus.post(MediaStopEvent())
if not wait_for_response:
return

View File

@ -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