Skip to content

Commit

Permalink
fix application of patch 0018-feat-espconn-Modification-for-espconn.p…
Browse files Browse the repository at this point in the history
…atch in nodemcu#2269

espconn_tcp_reconnect() was removed instead of espconn_list_delete()
  • Loading branch information
devsaurus committed May 8, 2018
1 parent 6a261ae commit f6cf5d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lwip/app/espconn_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down

0 comments on commit f6cf5d8

Please sign in to comment.