From 24d673a95431764ce0ed14f85372a23a4cf2a569 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Sun, 22 Dec 2024 19:02:34 +0100 Subject: [PATCH] fix removal of second thread --- main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.py b/main.py index 4de9597..523d087 100644 --- a/main.py +++ b/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)