Skip to content

Commit 0f6a09c

Browse files
authored
Merge pull request me-no-dev#59 from btittelbach/master
fix ESPAsyncWebServer/issues/265 in AsyncTCP as well
2 parents 5f107e7 + 78a0cba commit 0f6a09c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AsyncTCP.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,9 @@ void AsyncServer::end(){
12521252
if(_pcb){
12531253
tcp_arg(_pcb, NULL);
12541254
tcp_accept(_pcb, NULL);
1255-
_tcp_abort(_pcb);
1255+
if(tcp_close(_pcb) != ERR_OK){
1256+
_tcp_abort(_pcb);
1257+
}
12561258
_pcb = NULL;
12571259
}
12581260
}

0 commit comments

Comments
 (0)