mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 23:49:03 +02:00
- 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:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user