mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
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:
parent
7e1066dbcc
commit
9c8889b429
1 changed files with 0 additions and 3 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue