forked from platypush/platypush
Make sure to always run .quit() on the _player instance on stop/exit event, even if the player is already stopped, otherwise the OMXPlayer session may be hanging in the background and prevent new DBus connections
This commit is contained in:
parent
04a23d555d
commit
b27c9ee630
1 changed files with 5 additions and 1 deletions
|
@ -116,8 +116,12 @@ class MediaOmxplayerPlugin(MediaPlugin):
|
|||
from omxplayer.player import OMXPlayerDeadError
|
||||
|
||||
if self._player:
|
||||
try:
|
||||
try:
|
||||
self._player.stop()
|
||||
except:
|
||||
pass
|
||||
|
||||
self._player.quit()
|
||||
except OMXPlayerDeadError:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue