- if whid != 0 {
- currBuffer = C.rmr_wh_send_msg(m.context, C.rmr_whid_t(whid), txBuffer)
- } else {
- if isRts {
- currBuffer = C.rmr_rts_msg(m.context, txBuffer)
- } else {
- currBuffer = C.rmr_send_msg(m.context, txBuffer)
- }
- }
- m.contextMux.Unlock()
-
- if currBuffer == nil {
- m.UpdateStatCounter("TransmitError")
- return m.LogMBufError("SendBuf failed", txBuffer)
- }