Check for player existing on state change
This commit is contained in:
parent
9fc746bd17
commit
823691c3de
@ -268,9 +268,11 @@ class SyncplayClient(object):
|
|||||||
return self._serverPassword
|
return self._serverPassword
|
||||||
|
|
||||||
def setPosition(self, position):
|
def setPosition(self, position):
|
||||||
|
if(self._player):
|
||||||
self._player.setPosition(position)
|
self._player.setPosition(position)
|
||||||
|
|
||||||
def setPaused(self, paused):
|
def setPaused(self, paused):
|
||||||
|
if(self._player):
|
||||||
self._player.setPaused(paused)
|
self._player.setPaused(paused)
|
||||||
|
|
||||||
def start(self, host, port):
|
def start(self, host, port):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user