From: Jud Stephenson Date: Sun, 8 Dec 2013 22:08:06 +0000 (-0500) Subject: Set initial 'running' attribute in Network class X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=03a6791bcb647d36016a9ff794d08f43bf0eb805;p=electrum-nvc.git Set initial 'running' attribute in Network class This was causing a AttributeError when network.is_running() was called before the network was started. --- diff --git a/lib/network.py b/lib/network.py index 5c49042..8d6608a 100644 --- a/lib/network.py +++ b/lib/network.py @@ -50,6 +50,7 @@ class Network(threading.Thread): self.queue = Queue.Queue() self.callbacks = {} self.protocol = self.config.get('protocol','s') + self.running = False # Server for addresses and transactions self.default_server = self.config.get('server')