From 609477737e6931230deea7346212b184cec7b8b1 Mon Sep 17 00:00:00 2001 From: LeenkxTeam Date: Sun, 23 Mar 2025 13:17:06 +0000 Subject: [PATCH] Update leenkx/blender/lnx/make.py --- leenkx/blender/lnx/make.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/leenkx/blender/lnx/make.py b/leenkx/blender/lnx/make.py index 5bd332a..fea052f 100644 --- a/leenkx/blender/lnx/make.py +++ b/leenkx/blender/lnx/make.py @@ -75,6 +75,11 @@ def run_proc(cmd, done: Callable) -> subprocess.Popen: # Put the done callback into the callback queue so that it # can be received by a polling function in the main thread thread_callback_queue.put([threading.current_thread(), done], block=True) + while not thread_callback_queue.empty(): + print("Processing callback from thread:", threading.current_thread()) + thread, callback = thread_callback_queue.get() + if callback is not None: + callback() else: done()