Don't loop forever after failing to connect to IRC
authorAlexander van Gessel <ai0867@gmail.com>
Tue, 4 Feb 2014 20:58:51 +0000 (21:58 +0100)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 4 Feb 2014 22:53:17 +0000 (17:53 -0500)
irkerd

diff --git a/irkerd b/irkerd
index 1f6af3dadaa0d1bfd3dae268282aeeac8812ab39..7f03856ffcd36ad11ad227b00666bf6ba37430df 100755 (executable)
--- a/irkerd
+++ b/irkerd
@@ -504,6 +504,7 @@ class Connection:
                             self.last_ping = time.time()
                         except IRCServerConnectionError:
                             self.status = "expired"
+                            break
                 elif self.status == "handshaking":
                     if time.time() > self.last_xmit + HANDSHAKE_TTL:
                         self.status = "expired"