From 27e0326727661ca5e19c157302803332307d553d 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 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.py b/main.py index 4de9597..e727702 100644 --- a/main.py +++ b/main.py @@ -151,12 +151,6 @@ def main(): th1 = threading.Thread(target=watch_crd, args=("traefik.io", "v1alpha1", "ingressroutes"), daemon=True) th1.start() - # wait for threads to finish - while th1.is_alive() and th2.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)