Skip to content

Commit

Permalink
Fix deprecated setDaemon()
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Apr 27, 2024
1 parent 24a9b59 commit 45be7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stressor/run_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit 45be7e9

Please sign in to comment.