Skip to content

Commit

Permalink
treat a full queue as an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
256dpi committed Apr 19, 2018
1 parent b6babde commit 9def48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp_mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static void esp_mqtt_message_handler(lwmqtt_client_t *client, void *ref, lwmqtt_

// queue event
if (xQueueSend(esp_mqtt_event_queue, &evt, 0) != pdTRUE) {
ESP_LOGW(ESP_MQTT_LOG_TAG, "xQueueSend: queue is full, dropping message");
ESP_LOGE(ESP_MQTT_LOG_TAG, "xQueueSend: queue is full, dropping message");
free(evt->topic.data);
free(evt->message.payload);
free(evt);
Expand Down

0 comments on commit 9def48e

Please sign in to comment.