From db3eb4cf3d5c7fc46b45085f0f4f76b9d406a815 Mon Sep 17 00:00:00 2001 From: shenjack <54507071+shenjackyuanjie@users.noreply.github.com> Date: Fri, 24 Sep 2021 14:52:41 +0800 Subject: [PATCH] rue --- Difficult_Rocket/api/new_thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Difficult_Rocket/api/new_thread.py b/Difficult_Rocket/api/new_thread.py index 7ee6803..ee71df1 100644 --- a/Difficult_Rocket/api/new_thread.py +++ b/Difficult_Rocket/api/new_thread.py @@ -24,8 +24,8 @@ def new_thread(thread_name: Optional[str or Callable] = None, Daemon=False): def wrap(*args, **kwargs): thread_ = threading.Thread(target=func, args=args, kwargs=kwargs, name=thread_name) thread_.setDaemon(Daemon) - crash.all_thread.append(thread_) thread_.start() + crash.all_thread.append(thread_) return thread # bring the signature of the func to the wrap function