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:
@@ -50,6 +50,7 @@ class Network(threading.Thread):
|
|||||||
self.queue = Queue.Queue()
|
self.queue = Queue.Queue()
|
||||||
self.callbacks = {}
|
self.callbacks = {}
|
||||||
self.protocol = self.config.get('protocol','s')
|
self.protocol = self.config.get('protocol','s')
|
||||||
|
self.running = False
|
||||||
|
|
||||||
# Server for addresses and transactions
|
# Server for addresses and transactions
|
||||||
self.default_server = self.config.get('server')
|
self.default_server = self.config.get('server')
|
||||||
|
|||||||
Reference in New Issue
Block a user