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 95d9153 commit 855c80cCopy full SHA for 855c80c
components/lwip/lwip/src/api/api_msg.c
@@ -799,12 +799,18 @@ netconn_drain(struct netconn *conn)
799
/* Only tcp pcbs have an acceptmbox, so no need to check conn->type */
800
/* pcb might be set to NULL already by err_tcp() */
801
/* drain recvmbox */
802
+#ifdef ESP_LWIP
803
+ if (newconn) {
804
+#endif /* ESP_LWIP */
805
netconn_drain(newconn);
806
if (newconn->pcb.tcp != NULL) {
807
tcp_abort(newconn->pcb.tcp);
808
newconn->pcb.tcp = NULL;
809
}
810
netconn_free(newconn);
811
812
+ }
813
814
815
816
sys_mbox_free(&conn->acceptmbox);
0 commit comments