From 9e46ab0b603b0bf53268573c815045874ea25ccb Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 16 Mar 2021 22:34:03 +0100 Subject: [PATCH] Wait for _on_stop_event in media.vlc.stop before releasing the instance --- platypush/plugins/media/vlc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platypush/plugins/media/vlc.py b/platypush/plugins/media/vlc.py index 82fd2836b8..4f9e1bd22e 100644 --- a/platypush/plugins/media/vlc.py +++ b/platypush/plugins/media/vlc.py @@ -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()