From 45be7e9b022aad6c5a4dba98d1f3c0c479006b08 Mon Sep 17 00:00:00 2001 From: Martin Wendt Date: Sat, 27 Apr 2024 17:58:36 +0200 Subject: [PATCH] Fix deprecated setDaemon() --- stressor/run_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stressor/run_manager.py b/stressor/run_manager.py index a74498a..bd7682d 100644 --- a/stressor/run_manager.py +++ b/stressor/run_manager.py @@ -349,7 +349,7 @@ def run_in_threads(self, user_list, context): sess = SessionManager(self, context, name, user) self.session_list.append(sess) t = threading.Thread(name=name, target=self._run_one, args=[sess]) - t.setDaemon(True) # Required to make Ctrl-C work + t.daemon = True # Required to make Ctrl-C work thread_list.append(t) logger.info(f"Starting {len(thread_list)} session workers...")