From af08ff9f807c0211f014c6c66d84106223bbcdee Mon Sep 17 00:00:00 2001 From: Et0h Date: Fri, 1 Mar 2024 15:23:41 +0000 Subject: [PATCH] Avoid error when closing Syncplay before loadDelayedPath is complete --- syncplay/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncplay/client.py b/syncplay/client.py index b7cb245..3dfcb35 100755 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -1785,6 +1785,9 @@ class SyncplayPlaylist(): def loadDelayedPath(self, changeToIndex): # Implementing the behaviour set out at https://github.com/Syncplay/syncplay/issues/315 + if not self._client: + return + if self._client.playerIsNotReady(): self._client.addPlayerReadyCallback(lambda x: self.loadDelayedPath(changeToIndex)) return