tMerge pull request #2245 from shsmith/master - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 682645bfe0434bd968262723744c283c30fad599 DIR parent dcffea150e5af6b456412e93778b8f491f1bb171 HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 6 Mar 2017 17:17:31 +0100 Merge pull request #2245 from shsmith/master fix #2204 Diffstat: M lib/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/network.py b/lib/network.py t@@ -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()