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):
|
def loadDelayedPath(self, changeToIndex):
|
||||||
# Implementing the behaviour set out at https://github.com/Syncplay/syncplay/issues/315
|
# Implementing the behaviour set out at https://github.com/Syncplay/syncplay/issues/315
|
||||||
|
|
||||||
|
if not self._client:
|
||||||
|
return
|
||||||
|
|
||||||
if self._client.playerIsNotReady():
|
if self._client.playerIsNotReady():
|
||||||
self._client.addPlayerReadyCallback(lambda x: self.loadDelayedPath(changeToIndex))
|
self._client.addPlayerReadyCallback(lambda x: self.loadDelayedPath(changeToIndex))
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user