diff --git a/app/lwip/app/espconn_tcp.c b/app/lwip/app/espconn_tcp.c index 49942e4ec8..b1ebfde4ea 100644 --- a/app/lwip/app/espconn_tcp.c +++ b/app/lwip/app/espconn_tcp.c @@ -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*/