This commit is contained in:
Uriziel 2012-12-13 23:18:10 +01:00
parent 1afb91907a
commit 706ca6fea4
1 changed files with 7 additions and 0 deletions

View File

@ -60,6 +60,10 @@ class SyncplayClient(object):
if(args.password):
args.password = hashlib.md5(args.password).hexdigest()
self._serverPassword = args.password
if(not args.file):
self.__getUserlistOnLogon = True
else:
self.__getUserlistOnLogon = False
self._player = None
self._playerClass = playerClass
self._startupArgs = args
@ -197,6 +201,9 @@ class SyncplayClient(object):
return madeChangeOnPlayer
def updateGlobalState(self, position, paused, doSeek, setBy, latency):
if(self.__getUserlistOnLogon):
self.__getUserlistOnLogon = False
self.getUserList()
madeChangeOnPlayer = False
if(not paused):
position += latency