wait a bit before asking for a new socket if the link is broken
authorThomasV <thomasv@gitorious>
Mon, 16 Dec 2013 19:14:53 +0000 (23:14 +0400)
committerThomasV <thomasv@gitorious>
Mon, 16 Dec 2013 19:14:53 +0000 (23:14 +0400)
backends/irc/__init__.py

index 80e4a1d..bbd6fc3 100644 (file)
@@ -134,6 +134,7 @@ class IrcThread(threading.Thread):
                         self.peers = {}
             except:
                 traceback.print_exc(file=sys.stdout)
+                time.sleep(1)
             finally:
                 s.close()