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:
Jud Stephenson 2013-12-08 17:08:06 -05:00
parent 3fc7d0ef9e
commit 03a6791bcb
1 changed files with 1 additions and 0 deletions

View File

@ -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')