mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
add assert
This commit is contained in:
parent
7b1eaf438e
commit
f8c5a4ea58
1 changed files with 1 additions and 0 deletions
|
@ -382,6 +382,7 @@ dvc_makeMQTTMessages( XW_DUtilCtxt* dutil, XWEnv xwe,
|
||||||
for ( SendMsgsPacket* packet = (SendMsgsPacket*)msgs;
|
for ( SendMsgsPacket* packet = (SendMsgsPacket*)msgs;
|
||||||
!!packet; packet = (SendMsgsPacket* const)packet->next ) {
|
!!packet; packet = (SendMsgsPacket* const)packet->next ) {
|
||||||
XP_U32 len = packet->len;
|
XP_U32 len = packet->len;
|
||||||
|
XP_ASSERT( 0 < len ); /* will confuse server */
|
||||||
stream_putU32VL( stream, len );
|
stream_putU32VL( stream, len );
|
||||||
stream_putBytes( stream, packet->buf, len );
|
stream_putBytes( stream, packet->buf, len );
|
||||||
nSent1 += len;
|
nSent1 += len;
|
||||||
|
|
Loading…
Reference in a new issue