Skip to content

Commit

Permalink
mqtt: note bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nwf committed Apr 5, 2020
1 parent dbfdd21 commit f726ba3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/modules/mqtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,7 @@ static int mqtt_socket_close( lua_State* L )
mqtt_message_t* temp_msg = mqtt_msg_disconnect(&msgb);
NODE_DBG("Send MQTT disconnect infomation, data len: %d, d[0]=%d \r\n", temp_msg->length, temp_msg->data[0]);

/* XXX This fails to actually send the disconnect message before hanging up */
#ifdef CLIENT_SSL_ENABLE
if(mud->secure) {
espconn_status = espconn_secure_send(&mud->pesp_conn, temp_msg->data, temp_msg->length);
Expand Down

0 comments on commit f726ba3

Please sign in to comment.