Skip to content
Browse files

oups

  • Loading branch information...
1 parent 9a705c4 commit 3d6d49d8f85bd4356f37cb001a29faf735360d0e @rep committed Oct 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 py/pwrcall/gev.py
View
3 py/pwrcall/gev.py
@@ -181,7 +181,6 @@ def keepalive(self):
with gevent.Timeout(self.node.timeoutseconds, ConnTimeout) as timeout:
try:
r = self.call('%ping', 'ping')
- gevent.sleep(self.node.timeoutseconds-2)
except ConnTimeout:
return self.logclose('Connection timeout.')
except CallException:
@@ -195,6 +194,8 @@ def keepalive(self):
logging.debug('Exception in keepalive: {0}'.format(e))
traceback.print_exc()
break
+ finally:
+ gevent.sleep(self.node.timeoutseconds-2)
if self.conn._closed: break
def call(self, ref, method, *params):

0 comments on commit 3d6d49d

Please sign in to comment.
Something went wrong with that request. Please try again.