Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 19a5320

Browse files
authored
Merge branch 'master' into fix-crash-on-fin-v2
2 parents 15356c3 + 0f6a09c commit 19a5320

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set(COMPONENT_SRCDIRS
2+
"src"
3+
)
4+
5+
set(COMPONENT_ADD_INCLUDEDIRS
6+
"src"
7+
)
8+
9+
set(COMPONENT_REQUIRES
10+
"arduino-esp32"
11+
)
12+
13+
register_component()
14+
15+
target_compile_options(${COMPONENT_TARGET} PRIVATE -fno-rtti)

src/AsyncTCP.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,7 +1278,9 @@ void AsyncServer::end(){
12781278
if(_pcb){
12791279
tcp_arg(_pcb, NULL);
12801280
tcp_accept(_pcb, NULL);
1281-
_tcp_abort(_pcb, -1);
1281+
if(tcp_close(_pcb) != ERR_OK){
1282+
_tcp_abort(_pcb, -1);
1283+
}
12821284
_pcb = NULL;
12831285
}
12841286
}

0 commit comments

Comments
 (0)