From: ThomasV Date: Mon, 16 Dec 2013 19:14:53 +0000 (+0400) Subject: wait a bit before asking for a new socket if the link is broken X-Git-Url: https://git.novaco.in/?p=electrum-server.git;a=commitdiff_plain;h=27a747403631ad45bc148b757403cdee6ffa67cb;hp=5fb807078d5d8158bcadf571ede6780e34d1f1f3 wait a bit before asking for a new socket if the link is broken --- diff --git a/backends/irc/__init__.py b/backends/irc/__init__.py index 80e4a1d..bbd6fc3 100644 --- a/backends/irc/__init__.py +++ b/backends/irc/__init__.py @@ -134,6 +134,7 @@ class IrcThread(threading.Thread): self.peers = {} except: traceback.print_exc(file=sys.stdout) + time.sleep(1) finally: s.close()