fix bug for after udp close select_waiting assert

This commit is contained in:
xueyunfei
2020-03-09 18:15:02 +08:00
parent 076270e732
commit dd3b301750
+3
View File
@@ -612,6 +612,9 @@ free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
*lastdata = sock->lastdata;
sock->lastdata.pbuf = NULL;
#if ESP_LWIP
sock->select_waiting = 0;
#endif /* ESP_LWIP */
*conn = sock->conn;
sock->conn = NULL;
return 1;