Fix cpu_thread pause

This commit is contained in:
Nekotekina 2017-03-25 19:43:53 +03:00
parent 98d96fd649
commit 8590b66b4b

View file

@ -123,7 +123,7 @@ bool cpu_thread::check_state()
if (cpu_flag_memory) vm::passive_lock(*this); if (cpu_flag_memory) vm::passive_lock(*this);
break; break;
} }
else if (!cpu_sleep_called) else if (!cpu_sleep_called && test(state, cpu_flag::suspend))
{ {
cpu_sleep(); cpu_sleep();
cpu_sleep_called = true; cpu_sleep_called = true;