sendMsg needs to report success if no-conn send works.

This commit is contained in:
Andy2 2011-08-17 18:41:45 -07:00
parent 2c26fc03e3
commit b9be2b45f4

View file

@ -1135,6 +1135,7 @@ sendMsg( CommsCtxt* comms, MsgQueueElem* elem )
XWHostID destID = getDestID( comms, channelNo );
if ( haveRelayID( comms ) && sendNoConn( comms, elem, destID ) ) {
/* do nothing */
result = elem->len;
} else if ( comms->r.relayState >= COMMS_RELAYSTATE_CONNECTED ) {
if ( send_via_relay( comms, XWRELAY_MSG_TORELAY, destID,
elem->msg, elem->len ) ){