Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tgalal/yowsup
Browse files Browse the repository at this point in the history
  • Loading branch information
tgalal committed Mar 10, 2013
2 parents 95b64a1 + 0381b57 commit 2da1571
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Yowsup/connectionmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ def __init__(self):
#self.socket = connection
self.terminateRequested = False
self.disconnectedSent = False
self.timeout = 240
self.timeout = 180
self.selectTimeout = 3
self.requests = {};
self.lock = threading.Lock()
Expand Down Expand Up @@ -724,7 +724,7 @@ def run(self):
if countdown % (self.selectTimeout*10) == 0 or countdown < 11:
self._d("Waiting, time to die: T-%i seconds" % countdown )

if self.timeout-countdown == 210 and self.ping and self.autoPong:
if self.timeout-countdown == 150 and self.ping and self.autoPong:
self.ping()

self.selectTimeout = 1 if countdown < 11 else 3
Expand Down

0 comments on commit 2da1571

Please sign in to comment.