electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit a51940fac07fdf096405e5f9ea2a5611aef17689
parent 04432fe93e89092a69a898e8511fd400cf6a212f
Author: SomberNight <somber.night@protonmail.com>
Date:   Tue, 10 Jul 2018 18:07:52 +0200

fix #4529

Diffstat:
Mlib/network.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/network.py b/lib/network.py @@ -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: