Linkcheck: Use Thread daemon argument

Instead of using a separate call.
This commit is contained in:
François Freitag 2020-10-11 11:41:42 +02:00
parent 0476e1cea9
commit 55f7919531
No known key found for this signature in database
GPG Key ID: 0CD53670BCA9253D

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)