aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-03-10 15:19:24 -0500
committerEric S. Raymond <esr@thyrsus.com>2016-03-10 15:19:24 -0500
commitdfea2cb486c046c92649b7ec81fe416a579f4048 (patch)
tree99fa8702904181dcd6bf534cc2ecd86a5ccbf93a
parentFix the way the proxy patch broke normal operation. (diff)
downloadirker-dfea2cb486c046c92649b7ec81fe416a579f4048.tar.xz
Improved fix for (Debian bug #749650).
-rwxr-xr-xirkerd4
1 files changed, 3 insertions, 1 deletions
diff --git a/irkerd b/irkerd
index 6cfa964..a6c315f 100755
--- a/irkerd
+++ b/irkerd
@@ -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: