Skip to content

Commit

Permalink
Fix a warning with the use of setDaemon
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Feb 21, 2023
1 parent e9e1c6e commit c1c1f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/wptserve/wptserve/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ def start(self):
self.logger.info(f"Starting {http_type} server on {http_scheme}://{self.host}:{self.port}")
self.started = True
self.server_thread = threading.Thread(target=self.httpd.serve_forever)
self.server_thread.setDaemon(True) # don't hang on exit
self.server_thread.daemon = True # don't hang on exit
self.server_thread.start()

def stop(self):
Expand Down

0 comments on commit c1c1f4b

Please sign in to comment.