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):
|
def _removeWatcherFromTheRoom(self, watcherProtocol):
|
||||||
for room in self._rooms.itervalues():
|
for room in self._rooms.itervalues():
|
||||||
watcher = room.pop(watcherProtocol, None)
|
watcher = room.pop(watcherProtocol, None)
|
||||||
return watcher
|
if(watcher):
|
||||||
|
return watcher
|
||||||
|
|
||||||
def _deleteRoomIfEmpty(self, room):
|
def _deleteRoomIfEmpty(self, room):
|
||||||
if (self._rooms[room] == {}):
|
if (self._rooms[room] == {}):
|
||||||
@ -227,7 +228,8 @@ class Watcher(object):
|
|||||||
|
|
||||||
def resetStateTimer(self):
|
def resetStateTimer(self):
|
||||||
if(self._sendStateTimer):
|
if(self._sendStateTimer):
|
||||||
self._sendStateTimer.reset()
|
self._sendStateTimer.stop()
|
||||||
|
self._sendStateTimer.start(1)
|
||||||
|
|
||||||
def deactivate(self):
|
def deactivate(self):
|
||||||
if(self._sendStateTimer):
|
if(self._sendStateTimer):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user