From 2947a15ae1897701089b3a043cf61be3d4a37c0c Mon Sep 17 00:00:00 2001 From: Max Hunt Date: Mon, 10 Feb 2020 17:56:22 +0000 Subject: [PATCH] Update --- main.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 0ccfd8e..1636494 100755 --- a/main.py +++ b/main.py @@ -22,6 +22,8 @@ import threading import object_tf_service as ots import time +running = True + table = { 'id':'t1', 'rframe':'world', @@ -461,12 +463,14 @@ tf_service(init=True) print('Done with task, enter x to kill tf service') -while True: - a = raw_input() - if a == 'x' or x == 'X': +while running: + a = input() + if a == 'x': print("x has been caught, killing tf service") + running = False tf_service(init=False) + print("Done, exiting") exit(0)