mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
improve logging, and fix mistyped variable found by inspection rather
because of a problem.
This commit is contained in:
parent
b9a7574925
commit
645695e358
1 changed files with 3 additions and 3 deletions
|
@ -1628,7 +1628,7 @@ comms_checkIncomingStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
|||
__func__, channelNo & CHANNEL_MASK, channelNo,
|
||||
msgID, lastMsgRcd );
|
||||
|
||||
payloadSize = stream_getSize( stream ) > 0; /* anything left? */
|
||||
payloadSize = stream_getSize( stream ); /* anything left? */
|
||||
|
||||
if ( connID == CONN_ID_NONE ) {
|
||||
/* special case: initial message from client or server */
|
||||
|
@ -1642,8 +1642,8 @@ comms_checkIncomingStream( CommsCtxt* comms, XWStreamCtxt* stream,
|
|||
messageValid = (NULL != rec)
|
||||
&& (0 == rec->lastMsgRcd || rec->lastMsgRcd <= msgID);
|
||||
if ( messageValid ) {
|
||||
XP_LOGF( "got channelNo=%d;msgID=%ld",
|
||||
channelNo & CHANNEL_MASK, msgID );
|
||||
XP_LOGF( "%s: got channelNo=%d;msgID=%ld;len=%d", __func__,
|
||||
channelNo & CHANNEL_MASK, msgID, payloadSize );
|
||||
rec->lastMsgRcd = msgID;
|
||||
stream_setAddress( stream, channelNo );
|
||||
messageValid = payloadSize > 0;
|
||||
|
|
Loading…
Reference in a new issue