mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-04 23:02:02 +01:00
don't move state forward when should be moving back
This commit is contained in:
parent
b56d990a04
commit
025bcb885b
1 changed files with 7 additions and 4 deletions
|
@ -1569,10 +1569,13 @@ relayPreProcess( CommsCtxt* comms, XWStreamCtxt* stream, XWHostID* senderID )
|
||||||
XP_LOGF( "%s: host id %x disconnected", __func__, srcID );
|
XP_LOGF( "%s: host id %x disconnected", __func__, srcID );
|
||||||
/* if we don't have connName then RECONNECTED is the wrong state to
|
/* if we don't have connName then RECONNECTED is the wrong state to
|
||||||
change to. */
|
change to. */
|
||||||
XP_ASSERT( 0 != comms->rr.connName[0] );
|
if ( COMMS_RELAYSTATE_RECONNECTED < comms->rr.relayState ) {
|
||||||
set_relay_state( comms, COMMS_RELAYSTATE_RECONNECTED );
|
XP_ASSERT( 0 != comms->rr.connName[0] );
|
||||||
/* we will eventually want to tell the user which player's gone */
|
XP_ASSERT( COOKIE_ID_NONE != comms->rr.cookieID );
|
||||||
util_userError( comms->util, ERR_RELAY_BASE + relayErr );
|
set_relay_state( comms, COMMS_RELAYSTATE_RECONNECTED );
|
||||||
|
/* we will eventually want to tell the user which player's gone */
|
||||||
|
util_userError( comms->util, ERR_RELAY_BASE + relayErr );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case XWRELAY_DISCONNECT_YOU: /* Close socket for this? */
|
case XWRELAY_DISCONNECT_YOU: /* Close socket for this? */
|
||||||
|
|
Loading…
Reference in a new issue