mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
respond to new game-gone message by passing to utils.
This commit is contained in:
parent
0787a06eb5
commit
b0a4790ce0
1 changed files with 6 additions and 0 deletions
|
@ -1154,6 +1154,7 @@ relayCmdToStr( XWRELAY_Cmd cmd )
|
|||
#endif
|
||||
CASESTR( XWRELAY_MSG_FROMRELAY );
|
||||
CASESTR( XWRELAY_MSG_TORELAY );
|
||||
CASESTR( XWRELAY_MSG_STATUS );
|
||||
default:
|
||||
XP_LOGF( "%s: unknown cmd: %d", __func__, cmd );
|
||||
XP_ASSERT( 0 );
|
||||
|
@ -1316,6 +1317,11 @@ relayPreProcess( CommsCtxt* comms, XWStreamCtxt* stream, XWHostID* senderID )
|
|||
util_userError( comms->util, ERR_RELAY_BASE + relayErr );
|
||||
break;
|
||||
|
||||
case XWRELAY_MSG_STATUS:
|
||||
relayErr = stream_getU8( stream );
|
||||
(*comms->procs.rerror)( comms->procs.closure, relayErr );
|
||||
break;
|
||||
|
||||
case XWRELAY_CONNECTDENIED: /* socket will get closed by relay */
|
||||
relayErr = stream_getU8( stream );
|
||||
set_relay_state( comms, COMMS_RELAYSTATE_DENIED );
|
||||
|
|
Loading…
Reference in a new issue