tinterface: do not use daemon threads - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 5f3b6af2e03414e58b9ad1ff4d1df89847dd89a5 DIR parent 9a40ed1d3ce93477a8fcb1b4afbb663f4d5ef260 HTML Author: ThomasV <thomasv@electrum.org> Date: Sat, 4 Jun 2016 12:56:51 +0200 interface: do not use daemon threads Diffstat: M lib/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/interface.py b/lib/interface.py t@@ -60,7 +60,6 @@ class TcpConnection(threading.Thread, util.PrintError): def __init__(self, server, queue, config_path): threading.Thread.__init__(self) - self.daemon = True self.config_path = config_path self.queue = queue self.server = server t@@ -105,6 +104,7 @@ class TcpConnection(threading.Thread, util.PrintError): for res in l: try: s = socket.socket(res[0], socket.SOCK_STREAM) + s.settimeout(10) s.connect(res[4]) s.settimeout(2) s.setsockopt(socket.SOL_SOCKET, socket.SO_KEEPALIVE, 1)