mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-22 16:59:19 +08:00
fix(lwip): Fix lwip multi-thread issue
internal: e7c378b6
This commit is contained in:
5
third_party/lwip/api/api_msg.c
vendored
5
third_party/lwip/api/api_msg.c
vendored
@@ -295,7 +295,10 @@ poll_tcp(void *arg, struct tcp_pcb *pcb)
|
||||
lwip_netconn_do_writemore(conn);
|
||||
} else if (conn->state == NETCONN_CLOSE) {
|
||||
lwip_netconn_do_close_internal(conn);
|
||||
} else if (conn->state == NETCONN_NONE) {
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
/* @todo: implement connect timeout here? */
|
||||
|
||||
/* Did a nonblocking write fail before? Then check available write-space. */
|
||||
@@ -331,6 +334,8 @@ sent_tcp(void *arg, struct tcp_pcb *pcb, u16_t len)
|
||||
lwip_netconn_do_writemore(conn);
|
||||
} else if (conn->state == NETCONN_CLOSE) {
|
||||
lwip_netconn_do_close_internal(conn);
|
||||
} else if (conn->state == NETCONN_NONE) {
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
if (conn) {
|
||||
|
Reference in New Issue
Block a user