diff --git a/Utilities/SMutex.h b/Utilities/SMutex.h index 9ca53ce0e..fb29087c6 100644 --- a/Utilities/SMutex.h +++ b/Utilities/SMutex.h @@ -123,7 +123,7 @@ public: default: return res; } - if (wait) wait(); + if (wait != nullptr) wait(); if (timeout && counter++ > timeout) {