recognize already-seen devices. This seems to occasionally fix

reconnect problems but needs to be studied/tested more -- check logs.
This commit is contained in:
Eric House 2013-07-20 11:44:00 -07:00
parent 464ef49018
commit 5d8cd5a17f

View file

@ -257,6 +257,9 @@ CRefMgr::getMakeCookieRef( const char* cookie, int nPlayersH, int nPlayersT,
if ( NULL == cinfo->GetRef() ) {
m_cidlock->Relinquish( cinfo, true );
continue;
} else if ( *seenSeed ) { /* this my home? */
logf( XW_LOGINFO, "%s: *seenSeed case", __func__ );
break;
} else if ( !cinfo->GetRef()->HaveRoom( nPlayersH ) ) {
m_cidlock->Relinquish( cinfo, false );
continue;