|
|
@ -168,9 +168,11 @@ t2.start() |
|
|
|
while not t2.connected: |
|
|
|
while not t2.connected: |
|
|
|
time.sleep(0.1) |
|
|
|
time.sleep(0.1) |
|
|
|
|
|
|
|
|
|
|
|
tStatus = StatusThread(t1, t2) |
|
|
|
tStatus = None |
|
|
|
tStatus.daemon = True |
|
|
|
if os.environ.get('DEBUG_STATUS', 0) == '1': |
|
|
|
tStatus.start() |
|
|
|
tStatus = StatusThread(t1, t2) |
|
|
|
|
|
|
|
tStatus.daemon = True |
|
|
|
|
|
|
|
tStatus.start() |
|
|
|
|
|
|
|
|
|
|
|
wiis = [t1, t2] |
|
|
|
wiis = [t1, t2] |
|
|
|
|
|
|
|
|
|
|
@ -238,6 +240,7 @@ try: |
|
|
|
except (KeyboardInterrupt, SystemExit): |
|
|
|
except (KeyboardInterrupt, SystemExit): |
|
|
|
t1.stop = True |
|
|
|
t1.stop = True |
|
|
|
t2.stop = True |
|
|
|
t2.stop = True |
|
|
|
|
|
|
|
if tStatus is not None: |
|
|
|
tStatus.stop = True |
|
|
|
tStatus.stop = True |
|
|
|
sys.exit() |
|
|
|
sys.exit() |
|
|
|
|
|
|
|
|
|
|
|