mirror of
https://github.com/me-no-dev/AsyncTCP.git
synced 2025-08-05 13:44:38 +02:00
Merge pull request #30 from tantive/idf-update
Fixed "Guru Meditation Error: Core 1 panic'ed (LoadProhibited)"
This commit is contained in:
@@ -281,7 +281,11 @@ typedef struct {
|
||||
|
||||
static err_t _tcp_output_api(struct tcpip_api_call_data *api_call_msg){
|
||||
tcp_api_call_t * msg = (tcp_api_call_t *)api_call_msg;
|
||||
msg->err = tcp_output(msg->pcb);
|
||||
if(msg->pcb){
|
||||
msg->err = tcp_output(msg->pcb);
|
||||
} else {
|
||||
msg->err = 0;
|
||||
}
|
||||
return msg->err;
|
||||
}
|
||||
|
||||
@@ -1161,9 +1165,9 @@ void AsyncServer::end(){
|
||||
tcp_arg(_pcb, NULL);
|
||||
tcp_accept(_pcb, NULL);
|
||||
if(_in_lwip_thread){
|
||||
tcp_abort(_pcb);
|
||||
tcp_close(_pcb);
|
||||
} else {
|
||||
_tcp_abort(_pcb);
|
||||
_tcp_close(_pcb);
|
||||
}
|
||||
_pcb = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user