10000 Clean close connections correctly when stopping the server. Closes #50 · petraq/esp32_https_server@1ca85e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1ca85e9

Browse files
committed
Clean close connections correctly when stopping the server. Closes fhessel#50
1 parent 1f4ef5e commit 1ca85e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HTTPServer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ void HTTPServer::stop() {
6969
// and wait for the client
7070
if (_connections[i]->isClosed()) {
7171
delete _connections[i];
72+
_connections[i] = NULL;
7273
} else {
7374
hasOpenConnections = true;
7475
}

0 commit comments

Comments
 (0)
0