commit 682645bfe0434bd968262723744c283c30fad599
parent dcffea150e5af6b456412e93778b8f491f1bb171
Author: ThomasV <thomasv@electrum.org>
Date: Mon, 6 Mar 2017 17:17:31 +0100
Merge pull request #2245 from shsmith/master
fix #2204
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/network.py b/lib/network.py
@@ -508,7 +508,8 @@ class Network(util.DaemonThread):
def close_interface(self, interface):
if interface:
- self.interfaces.pop(interface.server)
+ if interface.server in self.interfaces:
+ self.interfaces.pop(interface.server)
if interface.server == self.default_server:
self.interface = None
interface.close()