mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-17 20:34:42 +00:00
Fixed switching rooms in server
This commit is contained in:
parent
73af4c0dd3
commit
3bfb278d1d
@ -66,7 +66,8 @@ class SyncFactory(Factory):
|
||||
def _removeWatcherFromTheRoom(self, watcherProtocol):
|
||||
for room in self._rooms.itervalues():
|
||||
watcher = room.pop(watcherProtocol, None)
|
||||
return watcher
|
||||
if(watcher):
|
||||
return watcher
|
||||
|
||||
def _deleteRoomIfEmpty(self, room):
|
||||
if (self._rooms[room] == {}):
|
||||
@ -227,7 +228,8 @@ class Watcher(object):
|
||||
|
||||
def resetStateTimer(self):
|
||||
if(self._sendStateTimer):
|
||||
self._sendStateTimer.reset()
|
||||
self._sendStateTimer.stop()
|
||||
self._sendStateTimer.start(1)
|
||||
|
||||
def deactivate(self):
|
||||
if(self._sendStateTimer):
|
||||
|
Loading…
Reference in New Issue
Block a user