qcc_send_frames() can be called with an empty list and returns
immediately with an error code. This is convenience to be able to call
it in a while loop.
Remove the trace with "error" when this is the case and replacing it
with a less alarming "leaving on..." message. This should help debugging
when traces are active.
TRACE_ENTER(QMUX_EV_QCC_SEND, qcc->conn);
if (LIST_ISEMPTY(frms)) {
- TRACE_DEVEL("no frames to send", QMUX_EV_QCC_SEND, qcc->conn);
- goto err;
+ TRACE_DEVEL("leaving on no frame to send", QMUX_EV_QCC_SEND, qcc->conn);
+ return 1;
}
if (!qc_send_mux(qcc->conn->handle.qc, frms)) {