LV2/TImer: Fix notification discard

This commit is contained in:
Eladash 2023-04-29 09:30:53 +03:00 committed by Ivan
parent 49be6be8f4
commit 81e4d9c2ee

View file

@ -115,7 +115,7 @@ void lv2_timer_thread::operator()()
{ {
u64 sleep_time = 0; u64 sleep_time = 0;
while (thread_ctrl::state() != thread_state::aborting) while (true)
{ {
if (sleep_time != umax) if (sleep_time != umax)
{ {
@ -125,6 +125,11 @@ void lv2_timer_thread::operator()()
thread_ctrl::wait_for(sleep_time); thread_ctrl::wait_for(sleep_time);
if (thread_ctrl::state() == thread_state::aborting)
{
break;
}
sleep_time = umax; sleep_time = umax;
if (Emu.IsPaused()) if (Emu.IsPaused())