CLockObject lock(m_mutex);
#ifdef CEC_DEBUGGING
m_queue->m_com->m_callback->GetLib()->AddLog(CEC_LOG_DEBUG, "%s - received response - %s", ToString(), message.ToString().c_str());
+#else
+ if (message.IsError())
+ m_queue->m_com->m_callback->GetLib()->AddLog(CEC_LOG_DEBUG, "%s - received response - %s", ToString(), message.ToString().c_str());
#endif
m_message->response = message.packet;
if (m_message->IsTranmission())
m_messages.erase(iEntryId);
}
- if (msg->ReplyIsError())
+ if (msg->ReplyIsError() && msg->state != ADAPTER_MESSAGE_STATE_SENT_NOT_ACKED)
msg->state = ADAPTER_MESSAGE_STATE_ERROR;
delete entry;