DC timeout the same as server's now

This commit is contained in:
Uriziel 2012-12-20 18:15:57 +01:00
parent 6531877968
commit ff2bd8acc9

View File

@ -104,7 +104,7 @@ class SyncplayClient(object):
self.checkIfConnected() self.checkIfConnected()
def checkIfConnected(self): def checkIfConnected(self):
if(self._lastGlobalUpdate and self._protocol and time.time() - self._lastGlobalUpdate > 2.5): if(self._lastGlobalUpdate and self._protocol and time.time() - self._lastGlobalUpdate > 4.1):
self._lastGlobalUpdate = None self._lastGlobalUpdate = None
self.ui.showErrorMessage("Connection with server timeouted") self.ui.showErrorMessage("Connection with server timeouted")
self._protocol.drop() self._protocol.drop()