We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c89724 commit 887fad4Copy full SHA for 887fad4
mqttclient/mqttclient.c
@@ -2,7 +2,7 @@
2
* @Author: jiejie
3
* @Github: https://github.com/jiejieTop
4
* @Date: 2019-12-09 21:31:25
5
- * @LastEditTime: 2020-10-29 14:15:15
+ * @LastEditTime: 2020-11-05 16:02:47
6
* @Description: the code belongs to jiejie, please keep the author information and source code according to the license.
7
*/
8
#include "mqttclient.h"
@@ -1045,6 +1045,7 @@ static int mqtt_connect_with_results(mqtt_client_t* c)
1045
c->mqtt_ping_outstanding = 0; /* reset ping outstanding */
1046
1047
} else {
1048
+ network_release(c->mqtt_network);
1049
mqtt_set_client_state(c, CLIENT_STATE_INITIALIZED); /* connect failed */
1050
}
1051
0 commit comments