fix removal of second thread

This commit is contained in:
Aaron Riedel 2024-12-22 19:02:34 +01:00
parent 131a1f4106
commit 24d673a954
Signed by: aaron
GPG key ID: 643004654D40D577

View file

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