support ctrl-c to terminate play.py
This commit is contained in:
parent
e6d477f9a3
commit
50b2d98d0a
@ -119,7 +119,10 @@ if __name__ == '__main__':
|
|||||||
thread_list.append(thread_play)
|
thread_list.append(thread_play)
|
||||||
|
|
||||||
for t in thread_list:
|
for t in thread_list:
|
||||||
|
t.daemon = True
|
||||||
t.start()
|
t.start()
|
||||||
|
|
||||||
for t in thread_list:
|
while True:
|
||||||
t.join()
|
time.sleep(1)
|
||||||
|
#for t in thread_list:
|
||||||
|
# t.join()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user