From dcec3329d4fb50b2edcb966976989769356deeb6 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 19 Feb 2019 11:09:22 +0100 Subject: [PATCH] Trying to fix nasty race condition SHUTDOWN->START_FILE that triggers a spurious MediaStopEvent --- platypush/plugins/media/mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/plugins/media/mpv.py b/platypush/plugins/media/mpv.py index 50ec04a71..215c847a9 100644 --- a/platypush/plugins/media/mpv.py +++ b/platypush/plugins/media/mpv.py @@ -88,7 +88,7 @@ class MediaMpvPlugin(MediaPlugin): elif evt == Event.UNPAUSE: bus.post(MediaPlayEvent(resource=self._get_current_resource())) elif evt == Event.END_FILE or evt == Event.SHUTDOWN: - playback_rebounced = playback_rebounce_event.wait(timeout=1) + playback_rebounced = playback_rebounce_event.wait(timeout=2) if playback_rebounced: playback_rebounce_event.clear() return