diff --git a/Utilities/SMutex.h b/Utilities/SMutex.h index 9ca53ce0e9..fb29087c6b 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) {