mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
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:
parent
2d9851902c
commit
804070efc7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue