base comms_canChat() on whether connID's been assigned. It's possible

to send a message from a client immediately after its initial message
but init-message dupe-detection in comms will drop that because only
one channel-0 message is expected -- the initial connection message.
So don't encourage platform code to enable the feature before common
code can deliver the message.
This commit is contained in:
Andy2 2010-11-01 06:57:41 -07:00
parent 2d9851902c
commit 804070efc7

View file

@ -1653,8 +1653,8 @@ comms_checkComplete( const CommsAddrRec* addr )
XP_Bool
comms_canChat( const CommsCtxt* const comms )
{
XP_Bool canChat = COMMS_CONN_RELAY == comms_getConType( comms )
&& COMMS_RELAYSTATE_CONNECTED <= comms->r.relayState;
XP_Bool canChat = comms_isConnected( comms )
&& comms->connID != 0;
LOG_RETURNF( "%s", canChat?"true":"false" );
return canChat;
}