Merge pull request #8307 from francoisfreitag/daemon

Linkcheck: Use Thread daemon argument
This commit is contained in:
Takeshi KOMIYA 2020-10-24 20:16:49 +09:00 committed by GitHub
commit c8f018bfd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,8 +106,7 @@ class CheckExternalLinksBuilder(Builder):
self.rqueue = queue.Queue() # type: queue.Queue
self.workers = [] # type: List[threading.Thread]
for i in range(self.app.config.linkcheck_workers):
thread = threading.Thread(target=self.check_thread)
thread.setDaemon(True)
thread = threading.Thread(target=self.check_thread, daemon=True)
thread.start()
self.workers.append(thread)