tfix #4529 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit a51940fac07fdf096405e5f9ea2a5611aef17689 DIR parent 04432fe93e89092a69a898e8511fd400cf6a212f HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 10 Jul 2018 18:07:52 +0200 fix #4529 Diffstat: M lib/network.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/network.py b/lib/network.py t@@ -529,9 +529,10 @@ class Network(util.DaemonThread): self.auto_connect = auto_connect if self.proxy != proxy or self.protocol != protocol: # Restart the network defaulting to the given server - self.stop_network() - self.default_server = server - self.start_network(protocol, proxy) + with self.interface_lock: + self.stop_network() + self.default_server = server + self.start_network(protocol, proxy) elif self.default_server != server: self.switch_to_interface(server) else: