Browse Source

Debug mode fails to correctly track stack traces when returning, also makes releasereadlock increment negatively in mutex

Image 4 years ago
parent
commit
1af11fadb0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      EQ2/source/common/Mutex.cpp

+ 2 - 1
EQ2/source/common/Mutex.cpp

@@ -105,7 +105,8 @@ void Mutex::readlock(const char* function, int32 line) {
 					LogWrite(MUTEX__ERROR, 0, "Mutex", "%s, number of locks = %u", itr->first.c_str(), itr->second);
 			}
 			CSStack.unlock();
-			return;
+			i = 0;
+			continue;
 		}
 		i++;
 #endif