get rid of mutex guarding reconnect. There shouldn't be any need

since game slots are already assigned, and it's slowing down
reconnects in their race with kills.
This commit is contained in:
Andy2 2010-09-18 05:07:23 -07:00
parent 7e1066dbcc
commit 9c8889b429

View file

@ -377,9 +377,6 @@ processReconnect( unsigned char* bufp, int bufLen, int socket )
&& getNetByte( &bufp, end, &langCode )
&& readStr( &bufp, end, connName, sizeof(connName) ) ) {
static pthread_mutex_t s_newCookieLock = PTHREAD_MUTEX_INITIALIZER;
MutexLock ml( &s_newCookieLock );
SafeCref scr( connName[0]? connName : NULL,
srcID, socket, nPlayersH,
nPlayersT, gameSeed, langCode );