Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ca85e9

Browse filesBrowse files
committed
Clean close connections correctly when stopping the server. Closes #50
1 parent 1f4ef5e commit 1ca85e9
Copy full SHA for 1ca85e9

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed

‎src/HTTPServer.cpp

Copy file name to clipboardExpand all lines: src/HTTPServer.cpp
+1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.