mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
don't assert unset cookieID, as that's normal (I think) for unconnected case
This commit is contained in:
parent
fb7c1682b4
commit
23b72467bb
1 changed files with 5 additions and 2 deletions
|
@ -1495,7 +1495,7 @@ relayPreProcess( CommsCtxt* comms, XWStreamCtxt* stream, XWHostID* senderID )
|
|||
comms->rr.myHostID, srcID );
|
||||
}
|
||||
|
||||
if ( 0 == comms->rr.cookieID ) {
|
||||
if ( COOKIE_ID_NONE == comms->rr.cookieID ) {
|
||||
XP_LOGF( "%s: cookieID still 0; background send?",
|
||||
__func__ );
|
||||
}
|
||||
|
@ -2266,7 +2266,10 @@ msg_to_stream( CommsCtxt* comms, XWRELAY_Cmd cmd, XWHostID destID,
|
|||
|
||||
switch ( cmd ) {
|
||||
case XWRELAY_MSG_TORELAY:
|
||||
XP_ASSERT( COOKIE_ID_NONE != comms->rr.cookieID );
|
||||
if ( COOKIE_ID_NONE == comms->rr.cookieID ) {
|
||||
XP_LOGF( "%s: cookieID still 0; background send?",
|
||||
__func__ );
|
||||
}
|
||||
stream_putU16( stream, comms->rr.cookieID );
|
||||
case XWRELAY_MSG_TORELAY_NOCONN:
|
||||
stream_putU8( stream, comms->rr.myHostID );
|
||||
|
|
Loading…
Reference in a new issue