mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-07 05:30:14 +00:00
netconn_delete(): unblock potentially waiting recv.
This commit is contained in:
parent
557a0c7ae3
commit
17f07a36ef
@ -325,6 +325,8 @@ netconn_delete(struct netconn *conn)
|
||||
|
||||
/* Drain the recvmbox. */
|
||||
if (conn->recvmbox != SYS_MBOX_NULL) {
|
||||
/* send message in order to unblock a potentially waiting recv. */
|
||||
sys_mbox_post( conn->recvmbox, NULL );
|
||||
while (sys_mbox_tryfetch(conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
|
||||
if (conn->type == NETCONN_TCP) {
|
||||
if(mem != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user