forked from platypush/platypush
[media.vlc] Always set the stop event when the player quits.
This commit is contained in:
parent
1626fc737e
commit
f98f9c3b96
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ class MediaVlcPlugin(MediaPlugin):
|
||||||
if state in {vlc.State.Stopped, vlc.State.Ended, vlc.State.Error}: # type: ignore
|
if state in {vlc.State.Stopped, vlc.State.Ended, vlc.State.Error}: # type: ignore
|
||||||
break
|
break
|
||||||
|
|
||||||
|
self._on_stop_event.set()
|
||||||
self.logger.info('VLC stream terminated')
|
self.logger.info('VLC stream terminated')
|
||||||
self.quit()
|
self.quit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue