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,9 +268,11 @@ class SyncplayClient(object):
return self._serverPassword
def setPosition(self, position):
if(self._player):
self._player.setPosition(position)
def setPaused(self, paused):
if(self._player):
self._player.setPaused(paused)
def start(self, host, port):