Check for player existing on state change

This commit is contained in:
Uriziel 2012-10-19 14:52:45 +02:00
parent 9fc746bd17
commit 823691c3de
1 changed files with 4 additions and 2 deletions

View File

@ -268,10 +268,12 @@ class SyncplayClient(object):
return self._serverPassword
def setPosition(self, position):
self._player.setPosition(position)
if(self._player):
self._player.setPosition(position)
def setPaused(self, paused):
self._player.setPaused(paused)
if(self._player):
self._player.setPaused(paused)
def start(self, host, port):
if self._running: