Merge pull request #59 from btittelbach/master

fix ESPAsyncWebServer/issues/265 in AsyncTCP as well
This commit is contained in:
Me No Dev
2019-09-24 12:12:39 +03:00
committed by GitHub

View File

@@ -1252,7 +1252,9 @@ void AsyncServer::end(){
if(_pcb){
tcp_arg(_pcb, NULL);
tcp_accept(_pcb, NULL);
_tcp_abort(_pcb);
if(tcp_close(_pcb) != ERR_OK){
_tcp_abort(_pcb);
}
_pcb = NULL;
}
}