aboutsummaryrefslogtreecommitdiff
path: root/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'client.py')
-rwxr-xr-xclient.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.py b/client.py
index 9c2c369..9b59617 100755
--- a/client.py
+++ b/client.py
@@ -37,11 +37,11 @@ elif config.has_section("connection.serial"):
# Connect to the endpoint right now
component.provideAdapter(endpoint.EndPoint)
s = component.queryAdapter(conn, endpoint.IEndpoint)
-s.connect()
if args.layer is not None:
print(args.layer)
s.queue = Queue()
+ s.connect()
with open(args.layer, "r") as json_file:
json_data = json_file.read()
j = json.loads(json_data)
@@ -58,6 +58,7 @@ class Conn(Thread):
self.queue = queue
self.in_queue = Queue()
s.queue = self.in_queue
+ s.connect()
def run(self):
@@ -76,7 +77,6 @@ class Conn(Thread):
s.connect()
continue
-
s.fetch()
while not self.in_queue.empty():