tClear self.interface when switching - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b14aae5ebc30c17a76197b7bd0e992a16de1c52f DIR parent 6f1367fea69306452b070f3d4c9b4fff06a97519 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Wed, 9 Sep 2015 22:13:09 +0900 Clear self.interface when switching When switching and the interface isn't immediately available, we should clear self.Interface as otherwise requests will still be going to it. Diffstat: M lib/network.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/lib/network.py b/lib/network.py t@@ -418,6 +418,7 @@ class Network(util.DaemonThread): if server already is our interface.''' self.default_server = server if server not in self.interfaces: + self.interface = None self.start_interface(server) return i = self.interfaces[server]