From 916cdebacb635ee3605886b20a6128cba228f9c8 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 18 Sep 2018 19:27:33 +0200 Subject: [PATCH] network: send out update trigger when stopping/starting network --- electrum/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/network.py b/electrum/network.py index 699713c8b..143d478be 100644 --- a/electrum/network.py +++ b/electrum/network.py @@ -487,6 +487,7 @@ class Network(PrintError): self._init_server_queue() self.set_proxy(proxy) self.start_interface(self.default_server) + self.trigger_callback('network_updated') def _init_server_queue(self): self.server_queue = queue.Queue() @@ -508,6 +509,7 @@ class Network(PrintError): assert not self.interfaces self.connecting.clear() self._stop_server_queue() + self.trigger_callback('network_updated') def _stop_server_queue(self): # Get a new queue - no old pending connections thanks! @@ -545,7 +547,6 @@ class Network(PrintError): self.switch_to_interface(server_str) else: self.switch_lagging_interface() - self.trigger_callback('network_updated') def switch_to_random_interface(self): '''Switch to a random connected server other than the current one'''