diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-30 22:54:40 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-01-30 22:54:40 +0100 |
commit | b834841aa1fc33db987e9d0b95e1678974064d04 (patch) | |
tree | 1de2841336d687a60cb6b43d19786489d1c1b857 /source/cCriticalSection.cpp | |
parent | Added a WebAdmin interface to view users their groups, and the permissions of groups. (diff) | |
download | cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.gz cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.bz2 cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.lz cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.xz cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.zst cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.zip |
Diffstat (limited to 'source/cCriticalSection.cpp')
-rw-r--r-- | source/cCriticalSection.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/cCriticalSection.cpp b/source/cCriticalSection.cpp index 95ee77c3d..d7498aa5f 100644 --- a/source/cCriticalSection.cpp +++ b/source/cCriticalSection.cpp @@ -107,6 +107,12 @@ cCSLock::cCSLock(cCriticalSection & a_CS) cCSLock::~cCSLock()
{
+ #ifdef _DEBUG
+ if (!m_IsLocked)
+ {
+ return;
+ }
+ #endif // _DEBUG
Unlock();
}
|