diff --git a/syncplay/client.py b/syncplay/client.py index db7ab5bc0..4bfb0257a 100644 --- a/syncplay/client.py +++ b/syncplay/client.py @@ -50,6 +50,7 @@ def __init__(self, playerClass, ui, args): self.protocolFactory = SyncClientFactory(self) self.ui = UiManager(self, ui) self.userlist = SyncplayUserlist(self.ui, self) + self._protocol = None if(args.room == None or args.room == ''): args.room = 'default' self.defaultRoom = args.room @@ -59,7 +60,6 @@ def __init__(self, playerClass, ui, args): if(args.password): args.password = hashlib.md5(args.password).hexdigest() self._serverPassword = args.password - self._protocol = None self._player = None self._playerClass = playerClass self._startupArgs = args @@ -257,6 +257,7 @@ def getUsername(self): def setRoom(self, roomName): self.userlist.currentUser.room = roomName + self.getUserList() def sendRoom(self): room = self.userlist.currentUser.room