pull req by EagleTM (retyped manually)
authorThomasV <thomasv@gitorious>
Thu, 29 Nov 2012 09:53:03 +0000 (13:53 +0400)
committerThomasV <thomasv@gitorious>
Thu, 29 Nov 2012 09:53:03 +0000 (13:53 +0400)
backends/irc/__init__.py

index 46ec921..efdb6ad 100644 (file)
@@ -62,7 +62,9 @@ class IrcThread(threading.Thread):
             try:
                 s = socket.socket()
                 s.connect(('irc.freenode.net', 6667))
+                s.settimeout(260)
             except:
+                s.close()
                 time.sleep(10)
                 continue