mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
add logging to help catch a recurring assertion
This commit is contained in:
parent
25ae118c4f
commit
e5d5584a04
1 changed files with 6 additions and 0 deletions
|
@ -563,6 +563,7 @@ comms_getConType( const CommsCtxt* comms )
|
||||||
XP_Bool
|
XP_Bool
|
||||||
comms_getIsServer( const CommsCtxt* comms )
|
comms_getIsServer( const CommsCtxt* comms )
|
||||||
{
|
{
|
||||||
|
XP_ASSERT( !!comms );
|
||||||
return comms->isServer;
|
return comms->isServer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1025,6 +1026,11 @@ comms_checkIncomingStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if ( !!recs ) {
|
if ( !!recs ) {
|
||||||
XP_ASSERT( lastMsgRcd <= recs->nextMsgID );
|
XP_ASSERT( lastMsgRcd <= recs->nextMsgID );
|
||||||
|
if ( lastMsgRcd > recs->nextMsgID ) {
|
||||||
|
XP_LOGF( "bad: got lastMsgRcd of %ld, "
|
||||||
|
"nextMsgID is %ld",
|
||||||
|
lastMsgRcd, recs->nextMsgID );
|
||||||
|
}
|
||||||
XP_ASSERT( lastMsgRcd < 0x0000FFFF );
|
XP_ASSERT( lastMsgRcd < 0x0000FFFF );
|
||||||
recs->lastACK = (XP_U16)lastMsgRcd;
|
recs->lastACK = (XP_U16)lastMsgRcd;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue