forked from platypush/platypush
Wait for _on_stop_event in media.vlc.stop before releasing the instance
This commit is contained in:
parent
c74d2fb124
commit
9e46ab0b60
1 changed files with 1 additions and 0 deletions
|
@ -222,6 +222,7 @@ class MediaVlcPlugin(MediaPlugin):
|
||||||
return None, 'No vlc instance is running'
|
return None, 'No vlc instance is running'
|
||||||
|
|
||||||
self._player.stop()
|
self._player.stop()
|
||||||
|
self._on_stop_event.wait(timeout=5)
|
||||||
self._reset_state()
|
self._reset_state()
|
||||||
return self.status()
|
return self.status()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue