Remove setDaemon in tracker. (#6872)

This commit is contained in:
Jiaming Yuan 2021-04-22 01:57:13 +08:00 committed by GitHub
parent 71b938f608
commit 233bdf105f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,8 +348,7 @@ class RabitTracker(object):
def run():
self.accept_slaves(nslave)
self.thread = Thread(target=run, args=())
self.thread.setDaemon(True)
self.thread = Thread(target=run, args=(), daemon=True)
self.thread.start()
def join(self):