diff --git a/src/client/windows/common/auto_critical_section.h b/src/client/windows/common/auto_critical_section.h index a2076b04..40287427 100644 --- a/src/client/windows/common/auto_critical_section.h +++ b/src/client/windows/common/auto_critical_section.h @@ -63,8 +63,8 @@ class AutoCriticalSection { // the critical seciton has been entered already. void Release() { assert(taken_); - LeaveCriticalSection(cs_); taken_ = false; + LeaveCriticalSection(cs_); } private: