diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2016-03-10 15:19:24 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2016-03-10 15:19:24 -0500 |
commit | dfea2cb486c046c92649b7ec81fe416a579f4048 (patch) | |
tree | 99fa8702904181dcd6bf534cc2ecd86a5ccbf93a | |
parent | Fix the way the proxy patch broke normal operation. (diff) | |
download | irker-dfea2cb486c046c92649b7ec81fe416a579f4048.tar.xz |
Improved fix for (Debian bug #749650).
-rwxr-xr-x | irkerd | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -509,6 +509,9 @@ class Connection: self.connection = None if self.status != "expired": self.status = "disconnected" + # Avoid flooding the server if it disconnects + # immediately on sucessful login. + time.sleep(RECONNECT_DELAY) def handle_kick(self, outof): "We've been kicked." self.status = "handshaking" @@ -604,7 +607,6 @@ class Connection: except IRCServerConnectionError as e: LOG.error("irkerd: %s" % e) self.status = "expired" - time.sleep(RECONNECT_DELAY) break elif self.status == "handshaking": if time.time() > self.last_xmit + HANDSHAKE_TTL: |