mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-16 10:56:51 +00:00
Avoid error when closing Syncplay before loadDelayedPath is complete
This commit is contained in:
parent
899081ca6e
commit
af08ff9f80
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user