Set initial 'running' attribute in Network class
This was causing a AttributeError when network.is_running() was called before the network was started.
This commit is contained in:
parent
3fc7d0ef9e
commit
03a6791bcb
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue