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()