Fixed room switching dropping clients

This commit is contained in:
Uriziel 2014-04-21 18:13:06 +02:00
parent d3b545d099
commit 72c00331d5

View File

@ -275,11 +275,12 @@ class Watcher(object):
def _resetStateTimer(self):
if self._sendStateTimer:
self._sendStateTimer.stop()
if self._sendStateTimer.running:
self._sendStateTimer.stop()
self._sendStateTimer.start(constants.SERVER_STATE_INTERVAL)
def _deactivateStateTimer(self):
if(self._sendStateTimer):
if(self._sendStateTimer and self._sendStateTimer.running):
self._sendStateTimer.stop()
def sendState(self, position, paused, doSeek, setBy, forcedUpdate):