From 77b0e7be5e35ce37f55d3035f57c8b81cd23c0ce Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 30 Jul 2015 11:32:16 +0200 Subject: [PATCH] network: initial status should be 'unknown', distinct from 'connecting' --- electrum | 2 +- lib/network_proxy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/electrum b/electrum index 23b79389d..6ffe86ca4 100755 --- a/electrum +++ b/electrum @@ -304,7 +304,7 @@ def run_cmdline(config): sys.exit(1) network = NetworkProxy(s, config) network.start() - while network.is_connecting(): + while network.status == 'unknown': time.sleep(0.1) if not network.is_connected(): print_msg("daemon is not connected") diff --git a/lib/network_proxy.py b/lib/network_proxy.py index c13eacdfe..2bc7af8d7 100644 --- a/lib/network_proxy.py +++ b/lib/network_proxy.py @@ -55,7 +55,7 @@ class NetworkProxy(util.DaemonThread): self.pipe.get_queue.put({'method':'network.status', 'params':[key, value]}) # status variables - self.status = 'connecting' + self.status = 'unknown' self.servers = {} self.banner = '' self.blockchain_height = 0