From 90135afce7d2162d48d2a4e659bcb22e2bf1e020 Mon Sep 17 00:00:00 2001 From: Lyncoln Date: Tue, 27 Oct 2026 08:30:25 -0400 Subject: [PATCH] Moved lifecycle registry out of createThread and into lifecycle manager since so that the registry is created INSIDE the thread. --- core/execution/createthread.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/core/execution/createthread.py b/core/execution/createthread.py index 64162d2..381d74a 100644 --- a/core/execution/createthread.py +++ b/core/execution/createthread.py @@ -2,7 +2,7 @@ import threading from .lifecyclemanager import registerLifecycle from .lifecyclemanager import manageLifecycle -threadlist = [] +#threadlist = [] #threadnum = 0 def buildThread(module, lifecycles): @@ -19,14 +19,12 @@ def buildThread(module, lifecycles): thread.start() - registryname = thread.name - registryvalue = thread - - lifecycles = registerLifecycle (module, lifecycles, registryname, registryvalue) - - threadlist.append(thread) - - #print(threadlist) #print(lifecycles) + #registryname = thread.name + #registryvalue = thread + + #lifecycles = registerLifecycle (module, lifecycles, thread.name, thread) + + #threadlist.append(thread) return thread, lifecycles