Browse Source

only show status output when enabled via env var

master
Fr3deric 6 years ago
parent
commit
497d340503
  1. 3
      wii-pair/daemon.py

3
wii-pair/daemon.py

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

Loading…
Cancel
Save