mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +01:00
remove some asserts Frank's seeing
This commit is contained in:
parent
eab9068d89
commit
8c60b99e82
2 changed files with 11 additions and 2 deletions
|
@ -943,7 +943,12 @@ comms_makeFromStream( MPFORMAL XWEnv xwe, XWStreamCtxt* stream,
|
|||
--queueLen; /* was dropped */
|
||||
}
|
||||
}
|
||||
XP_ASSERT( queueLen == comms->queueLen );
|
||||
#ifdef DEBUG
|
||||
if ( queueLen != comms->queueLen ) {
|
||||
XP_LOGFF( "Error: queueLen %d != comms->queueLen %d",
|
||||
queueLen, comms->queueLen );
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( STREAM_VERS_DISABLEDS <= version ) {
|
||||
for ( CommsConnType typ = (CommsConnType)0; typ < VSIZE(comms->disableds); ++typ ) {
|
||||
|
|
|
@ -382,7 +382,11 @@ dvc_makeMQTTMessages( XW_DUtilCtxt* dutil, XWEnv xwe,
|
|||
for ( SendMsgsPacket* packet = (SendMsgsPacket*)msgs;
|
||||
!!packet; packet = (SendMsgsPacket* const)packet->next ) {
|
||||
XP_U32 len = packet->len;
|
||||
XP_ASSERT( 0 < len ); /* will confuse server */
|
||||
#ifdef DEBUG
|
||||
if ( 0 == len ) {
|
||||
XP_LOGFF( "ERROR: msg len 0" );
|
||||
}
|
||||
#endif
|
||||
stream_putU32VL( stream, len );
|
||||
stream_putBytes( stream, packet->buf, len );
|
||||
nSent1 += len;
|
||||
|
|
Loading…
Reference in a new issue