From 4d7088d3215a320aceba2a095d3ca500eff3e6ca Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Fri, 25 Jul 2025 14:21:31 -0700 Subject: [PATCH] do not pre-emptively exit the debug event loop on timeout unless we actually have debug strings --- src/demon/win32/demon_core_win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/demon/win32/demon_core_win32.c b/src/demon/win32/demon_core_win32.c index 100cc98c..6a157f18 100644 --- a/src/demon/win32/demon_core_win32.c +++ b/src/demon/win32/demon_core_win32.c @@ -1822,7 +1822,7 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls) // if priority mode? => first, just resume priority thread // if not? => resume all non-priority threads // - if(do_threads_resume) + if(do_threads_resume) ProfScope("resume threads that we want to run") { do_threads_resume = 0; for(DMN_W32_EntityNode *n = first_run_thread; n != 0; n = n->next) @@ -2676,7 +2676,7 @@ dmn_ctrl_run(Arena *arena, DMN_CtrlCtx *ctx, DMN_RunCtrls *ctrls) //////////////////////// //- rjf: exit loop after a little while, so we keep pumping e.g. debug strings // - if(os_now_microseconds() >= begin_time+100000) + if(os_now_microseconds() >= begin_time+100000 && debug_strings.total_size != 0) { keep_going = 0; }