Skip to content

Commit

Permalink
Fix: Required to lock TCPIP core functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Nov 12, 2024
1 parent 48a37de commit 97af778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AsyncTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1531,10 +1531,10 @@ void AsyncServer::end(){
TCP_MUTEX_LOCK();
tcp_arg(_pcb, NULL);
tcp_accept(_pcb, NULL);
TCP_MUTEX_UNLOCK();
if(tcp_close(_pcb) != ERR_OK){
_tcp_abort(_pcb, -1);
}
TCP_MUTEX_UNLOCK();
_pcb = NULL;
}
}
Expand Down

0 comments on commit 97af778

Please sign in to comment.