fix removal of second thread
This commit is contained in:
parent
131a1f4106
commit
24d673a954
1 changed files with 1 additions and 4 deletions
5
main.py
5
main.py
|
@ -152,11 +152,8 @@ def main():
|
|||
th1.start()
|
||||
|
||||
# wait for threads to finish
|
||||
while th1.is_alive() and th2.is_alive():
|
||||
while th1.is_alive():
|
||||
th1.join(0.1)
|
||||
th2.join(0.1)
|
||||
logging.info(f"One of the threads exited {th1.is_alive()}, {th2.is_alive()}")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
|
Loading…
Reference in a new issue