mirror of
https://github.com/me-no-dev/AsyncTCP.git
synced 2025-08-03 04:34:44 +02:00
Fix: Required to lock TCPIP core functionality
See: https://github.com/espressif/arduino-esp32/issues/10526#issuecomment-2471122550
This commit is contained in:
@@ -1531,9 +1531,11 @@ void AsyncServer::end(){
|
|||||||
TCP_MUTEX_LOCK();
|
TCP_MUTEX_LOCK();
|
||||||
tcp_arg(_pcb, NULL);
|
tcp_arg(_pcb, NULL);
|
||||||
tcp_accept(_pcb, NULL);
|
tcp_accept(_pcb, NULL);
|
||||||
TCP_MUTEX_UNLOCK();
|
|
||||||
if(tcp_close(_pcb) != ERR_OK){
|
if(tcp_close(_pcb) != ERR_OK){
|
||||||
|
TCP_MUTEX_UNLOCK();
|
||||||
_tcp_abort(_pcb, -1);
|
_tcp_abort(_pcb, -1);
|
||||||
|
} else {
|
||||||
|
TCP_MUTEX_UNLOCK();
|
||||||
}
|
}
|
||||||
_pcb = NULL;
|
_pcb = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user