refactor(lwip): Refactor LWIP UDP sync

This commit is contained in:
Dong Heng
2018-10-06 10:38:49 +08:00
parent 9e86bda3d0
commit 34ae970f82
9 changed files with 401 additions and 126 deletions

View File

@ -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);