mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
fix(lwip): Fix shutdowm UDP error and exit
UDP cannot be shutdown and all socket "close" must be handled although shutdown error.
This commit is contained in:
@ -975,9 +975,7 @@ int lwip_close(int s)
|
||||
SYS_ARCH_DECL_PROTECT(lev);
|
||||
sys_mutex_t lock_tmp[SOCK_MT_LOCK_MAX];
|
||||
|
||||
ret = lwip_shutdown(s, SHUT_RDWR);
|
||||
if (ret)
|
||||
return ret;
|
||||
lwip_shutdown(s, SHUT_RDWR);
|
||||
|
||||
LWIP_ENTER_MT(s, SOCK_MT_CLOSE, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user