mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
设置线程为守护线程 随主线程结束而结束
This commit is contained in:
+2
-3
@@ -49,9 +49,8 @@ class Collect(object):
|
||||
# Create subdomain collection threads
|
||||
for collect_func in self.collect_funcs:
|
||||
func_obj, func_name = collect_func
|
||||
thread = threading.Thread(target=func_obj,
|
||||
name=func_name,
|
||||
args=(self.domain,))
|
||||
thread = threading.Thread(target=func_obj, name=func_name,
|
||||
args=(self.domain,), daemon=True)
|
||||
threads.append(thread)
|
||||
# Start all threads
|
||||
for thread in threads:
|
||||
|
||||
Reference in New Issue
Block a user