diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 96dcde42..64cd52f4 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -1747,7 +1747,6 @@ lwip_netconn_do_close(struct api_msg_msg *msg) { msg->err = ERR_CONN; } - NETCONN_SET_SAFE_ERR(msg->conn, msg->err); TCPIP_APIMSG_ACK(msg); }