From 03a6791bcb647d36016a9ff794d08f43bf0eb805 Mon Sep 17 00:00:00 2001 From: Jud Stephenson Date: Sun, 8 Dec 2013 17:08:06 -0500 Subject: [PATCH] Set initial 'running' attribute in Network class This was causing a AttributeError when network.is_running() was called before the network was started. --- lib/network.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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') -- 1.7.1