mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-09-29 12:27:42 +00:00
fix bug for after udp close select_waiting assert
This commit is contained in:
@@ -612,6 +612,9 @@ free_socket_locked(struct lwip_sock *sock, int is_tcp, struct netconn **conn,
|
|||||||
|
|
||||||
*lastdata = sock->lastdata;
|
*lastdata = sock->lastdata;
|
||||||
sock->lastdata.pbuf = NULL;
|
sock->lastdata.pbuf = NULL;
|
||||||
|
#if ESP_LWIP
|
||||||
|
sock->select_waiting = 0;
|
||||||
|
#endif /* ESP_LWIP */
|
||||||
*conn = sock->conn;
|
*conn = sock->conn;
|
||||||
sock->conn = NULL;
|
sock->conn = NULL;
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user