diff --git a/xwords4/relay/crefmgr.cpp b/xwords4/relay/crefmgr.cpp index c7d176fc3..9598480b6 100644 --- a/xwords4/relay/crefmgr.cpp +++ b/xwords4/relay/crefmgr.cpp @@ -154,8 +154,8 @@ CRefMgr::FindOpenGameFor( const char* cookie, const char* connName, __func__ ); *alreadyHere = true; found = cref; - } else if ( cref->GameOpen( cookie, nPlayersH, - false, alreadyHere ) ) { + } else if ( cref->GameOpen( cookie, false, + alreadyHere ) ) { found = cref; } else { /* drop if we match on connName and it's not @@ -182,8 +182,8 @@ CRefMgr::FindOpenGameFor( const char* cookie, const char* connName, if ( cref->SeedsBelong( connName ) ) { found = cref; } - } else if ( cref->GameOpen( cookie, nPlayersH, - true, alreadyHere ) ) { + } else if ( cref->GameOpen( cookie, true, + alreadyHere ) ) { found = cref; } else if ( cref->HasSocket_locked(socket) ) { logf( XW_LOGINFO, "%s: HasSocket case", __func__); diff --git a/xwords4/relay/crefmgr.h b/xwords4/relay/crefmgr.h index c20893080..30e1d4615 100644 --- a/xwords4/relay/crefmgr.h +++ b/xwords4/relay/crefmgr.h @@ -189,8 +189,7 @@ class SafeCref { bool Connect( int socket, HostID srcID, int nPlayersH, int nPlayersS, int seed ) { if ( IsValid() ) { - m_cref->_Connect( socket, srcID, nPlayersH, nPlayersS, seed ); - return true; + return m_cref->_Connect( socket, srcID, nPlayersH, nPlayersS, seed ); } else { return false; }