mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
don't try to send via mqtt when to dest address
This commit is contained in:
parent
3f92b879de
commit
55c50ca8b6
1 changed files with 7 additions and 0 deletions
|
@ -1557,6 +1557,13 @@ sendMsg( CommsCtxt* comms, XWEnv xwe, MsgQueueElem* elem, const CommsConnType fi
|
||||||
default: {
|
default: {
|
||||||
XP_ASSERT( addr_hasType( &addr, typ ) );
|
XP_ASSERT( addr_hasType( &addr, typ ) );
|
||||||
|
|
||||||
|
/* A more general check that the address type has the settings
|
||||||
|
it needs would be better here.... */
|
||||||
|
if ( typ == COMMS_CONN_MQTT && 0 == addr.u.mqtt.devID ) {
|
||||||
|
XP_LOGFF( "not sending: MQTT address NULL" );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
XP_ASSERT( !!comms->procs.send );
|
XP_ASSERT( !!comms->procs.send );
|
||||||
XP_U32 gameid = gameID( comms );
|
XP_U32 gameid = gameID( comms );
|
||||||
logAddr( comms, xwe, &addr, __func__ );
|
logAddr( comms, xwe, &addr, __func__ );
|
||||||
|
|
Loading…
Reference in a new issue