diff --git a/components/lwip/api/api_msg.c b/components/lwip/api/api_msg.c index a684a33bb..32a375419 100755 --- a/components/lwip/api/api_msg.c +++ b/components/lwip/api/api_msg.c @@ -1085,12 +1085,6 @@ lwip_netconn_do_delconn(void *m) } else #endif /* LWIP_NETCONN_FULLDUPLEX */ { - if (!(state != NETCONN_CONNECT || IN_NONBLOCKING_CONNECT(msg->conn))) { - msg->err = ERR_INPROGRESS; - NETCONN_SET_SAFE_ERR(msg->conn, ERR_INPROGRESS); - LWIP_DEBUGF(API_MSG_DEBUG, ("netconn error:ERR_INPROGRESS\n")); - return; - } /* Drain and delete mboxes */ netconn_drain(msg->conn);