Wait for _on_stop_event in media.vlc.stop before releasing the instance

This commit is contained in:
Fabio Manganiello 2021-03-16 22:34:03 +01:00
parent c74d2fb124
commit 9e46ab0b60

View file

@ -222,6 +222,7 @@ class MediaVlcPlugin(MediaPlugin):
return None, 'No vlc instance is running'
self._player.stop()
self._on_stop_event.wait(timeout=5)
self._reset_state()
return self.status()