increase sync timeout to 60 seconds

This commit is contained in:
Damien Elmes 2008-11-14 14:06:00 +09:00
parent cdd2be3548
commit d747745f13

View file

@ -902,7 +902,7 @@ class HttpSyncServerProxy(SyncServer):
"Check auth, protocol & grab deck list." "Check auth, protocol & grab deck list."
if not self.decks: if not self.decks:
import socket import socket
socket.setdefaulttimeout(10) socket.setdefaulttimeout(60)
d = self.runCmd("getDecks", d = self.runCmd("getDecks",
libanki=anki.version, libanki=anki.version,
client=clientVersion, client=clientVersion,