diff --git a/src/common/thread.cpp b/src/common/thread.cpp index e5d7d51aef..e1e7eb1b60 100644 --- a/src/common/thread.cpp +++ b/src/common/thread.cpp @@ -191,6 +191,8 @@ bool Event::WaitFor(const std::chrono::nanoseconds time) { _mm_mwaitx(1 << 1, 0u, cycles); if (!is_set.load()) return false; + } else { + return false; } } bool expected = true;