From: Alexander van Gessel Date: Tue, 4 Feb 2014 20:58:51 +0000 (+0100) Subject: Don't loop forever after failing to connect to IRC X-Git-Tag: 2.6~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9077d37112c6bf1116a1d382d096ad5d2a97429;p=irker.git Don't loop forever after failing to connect to IRC --- diff --git a/irkerd b/irkerd index 1f6af3d..7f03856 100755 --- 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"