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:
Dong Heng
2018-07-17 19:40:07 +08:00
parent a90eb7667f
commit 12bb86e845

View File

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