support ctrl-c to terminate play.py

This commit is contained in:
Dong Yan 2018-02-08 21:17:56 +08:00
parent e6d477f9a3
commit 50b2d98d0a

View File

@ -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()