mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-05 22:11:04 +08:00
refactor(lwip): Refactor LWIP UDP sync
This commit is contained in:
@ -757,8 +757,10 @@ int lwip_close(int s)
|
||||
{
|
||||
int ret;
|
||||
|
||||
#if ESP_UDP && LWIP_NETIF_TX_SINGLE_PBUF
|
||||
udp_sync_close(s);
|
||||
#if ESP_UDP
|
||||
struct lwip_sock *sock = get_socket(s);
|
||||
if (sock)
|
||||
udp_sync_close_netconn(sock->conn);
|
||||
#endif
|
||||
|
||||
_sock_set_open(s, 0);
|
||||
|
Reference in New Issue
Block a user