mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-06 20:29:04 +00:00
lwip_close(): call netconn_delete() under socksem to properly handle
concurrent closes.
This commit is contained in:
parent
17f07a36ef
commit
a3c3f47e17
@ -299,9 +299,9 @@ lwip_close(int s)
|
||||
return -1;
|
||||
}
|
||||
|
||||
sys_sem_wait(socksem);
|
||||
netconn_delete(sock->conn);
|
||||
|
||||
sys_sem_wait(socksem);
|
||||
if (sock->lastdata) {
|
||||
netbuf_delete(sock->lastdata);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user