Fix MQTT connect leak (#2368)

* fix application of patch 0018-feat-espconn-Modification-for-espconn.patch in #2269
espconn_tcp_reconnect() was removed instead of espconn_list_delete()
This commit is contained in:
Arnim Läuger 2018-05-15 20:55:31 +02:00 committed by Marcel Stör
parent 106841c26c
commit 914a4afc96
1 changed files with 1 additions and 1 deletions

View File

@ -434,9 +434,9 @@ espconn_Task(os_event_t *events)
break;
case SIG_ESPCONN_ERRER:
/*remove the node from the client's active connection list*/
espconn_list_delete(&plink_active, task_msg);
if (espconn_manual_recv_enabled(task_msg))
espconn_list_delete(&plink_active, task_msg);
espconn_tcp_reconnect(task_msg);
break;
case SIG_ESPCONN_CLOSE:
/*remove the node from the client's active connection list*/