logs: Prevent potential deadlock of the main thread in stack mode

If a thread logs faster than the GUI thread can print on screen.
This commit is contained in:
Eladash 2022-08-10 15:17:22 +03:00 committed by Ivan
parent 9212942724
commit 501ca4bcf5

View File

@ -676,6 +676,13 @@ void log_frame::UpdateUI()
} }
s_gui_listener.pop(); s_gui_listener.pop();
if (steady_clock::now() >= start + 7ms)
{
// Must break eventually
break;
}
continue; continue;
} }