mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-10-28 19:55:52 +08:00
设置为守护线程
This commit is contained in:
+5
-3
@@ -143,11 +143,13 @@ class Takeover(Module):
|
|||||||
for domain in self.subdomains:
|
for domain in self.subdomains:
|
||||||
self.subdomainq.put(domain)
|
self.subdomainq.put(domain)
|
||||||
# 进度线程
|
# 进度线程
|
||||||
progress_thread = Thread(target=self.progress)
|
progress_thread = Thread(target=self.progress, name='ProgressThread',
|
||||||
|
daemon=True)
|
||||||
progress_thread.start()
|
progress_thread.start()
|
||||||
# 检查线程
|
# 检查线程
|
||||||
for _ in range(self.thread):
|
for i in range(self.thread):
|
||||||
check_thread = Thread(target=self.check)
|
check_thread = Thread(target=self.check, name=f'CheckThread{i}',
|
||||||
|
daemon=True)
|
||||||
check_thread.start()
|
check_thread.start()
|
||||||
|
|
||||||
self.subdomainq.join()
|
self.subdomainq.join()
|
||||||
|
|||||||
Reference in New Issue
Block a user