- bugfix for socket mutex locked when deleting socket

- added faction detail in lobby when CRC's do not match on techtree
This commit is contained in:
Mark Vejvoda
2011-03-19 12:04:18 +00:00
parent 83eaa67068
commit bca617cf18
13 changed files with 312 additions and 204 deletions

View File

@@ -94,6 +94,7 @@ Mutex::~Mutex() {
char szBuf[1024]="";
snprintf(szBuf,1023,"In [%s::%s Line: %d] mutex == NULL refCount = %d owner [%s]",__FILE__,__FUNCTION__,__LINE__,refCount,ownerId.c_str());
throw runtime_error(szBuf);
//printf("%s\n",szBuf);
}
else if(refCount >= 1) {
char szBuf[1024]="";
@@ -101,8 +102,10 @@ Mutex::~Mutex() {
throw runtime_error(szBuf);
}
SDL_DestroyMutex(mutex);
mutex=NULL;
if(mutex != NULL) {
SDL_DestroyMutex(mutex);
mutex=NULL;
}
}
void Mutex::p() {