FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clean close connections correctly when stopping the server. Closes #50 · pablolode/esp32_https_server@1ca85e9 · GitHub

Repository navigation

Commit 1ca85e9

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL