mirror of
https://github.com/me-no-dev/AsyncTCP.git
synced 2025-08-02 12:14:41 +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_arg(_pcb, NULL);
|
||||
tcp_accept(_pcb, NULL);
|
||||
TCP_MUTEX_UNLOCK();
|
||||
if(tcp_close(_pcb) != ERR_OK){
|
||||
TCP_MUTEX_UNLOCK();
|
||||
_tcp_abort(_pcb, -1);
|
||||
} else {
|
||||
TCP_MUTEX_UNLOCK();
|
||||
}
|
||||
_pcb = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user