diff --git a/Utilities/lockless.h b/Utilities/lockless.h index 9429b22309..7b20b798cd 100644 --- a/Utilities/lockless.h +++ b/Utilities/lockless.h @@ -357,7 +357,7 @@ public: void wait() noexcept { - while (m_head == 0) + if (m_head == 0) { m_head.wait(0); }