Merge branch 'bugfix/tw12643_board_no_response' into 'master'

fix close socket block issue

See merge request !781
This commit is contained in:
Jiang Jiang Jian
2017-05-26 14:11:53 +08:00

View File

@@ -484,8 +484,6 @@ netconn_recv_data(struct netconn *conn, void **new_buf)
/* If we are closed, we indicate that we no longer wish to use the socket */
if (buf == NULL) {
API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0);
/* RX side is closed, so deallocate the recvmbox */
netconn_close_shutdown(conn, NETCONN_SHUT_RD);
/* Don' store ERR_CLSD as conn->err since we are only half-closed */
return ERR_CLSD;
}