mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-07 15:04:39 +08:00
Backed out last change to netconn_delete() after discussion with Frederic.
This commit is contained in:
parent
7862ba583e
commit
07223bf5ef
@ -325,8 +325,6 @@ netconn_delete(struct netconn *conn)
|
|||||||
|
|
||||||
/* Drain the recvmbox. */
|
/* Drain the recvmbox. */
|
||||||
if (conn->recvmbox != SYS_MBOX_NULL) {
|
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) {
|
while (sys_mbox_tryfetch(conn->recvmbox, &mem) != SYS_MBOX_EMPTY) {
|
||||||
if (conn->type == NETCONN_TCP) {
|
if (conn->type == NETCONN_TCP) {
|
||||||
if(mem != NULL)
|
if(mem != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user