Fixed client disconnecting with mpc when no file opened.

This commit is contained in:
Uriziel 2013-06-12 17:28:47 +02:00
parent 5a003ee065
commit d919a8c9e4

View File

@ -151,6 +151,7 @@ class SyncplayClient(object):
return None, None, None, None
def _initPlayerState(self, position, paused):
if(self.userlist.currentUser.file):
self.setPosition(position)
self._player.setPaused(paused)
madeChangeOnPlayer = True