diff --git a/src/machine.cpp b/src/machine.cpp index b9ae880225..9abe61301d 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -2350,6 +2350,7 @@ enter(Thread* t, Thread::State s) while (t->m->exclusive) { // another thread got here first. ENTER(t, Thread::IdleState); + t->m->stateLock->wait(t->systemThread, 0); } switch (t->state) {