Skip to content

Commit db2a1aa

Browse files
committed
Close WebSockets properly when shutting down the server. Resolves #44
1 parent 90c8177 commit db2a1aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HTTPConnection.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ void HTTPConnection::closeConnection() {
129129
if (_wsHandler != nullptr) {
130130
HTTPS_LOGD("Free WS Handler");
131131
delete _wsHandler;
132+
_wsHandler = NULL;
132133
}
133134
}
134135

0 commit comments

Comments
 (0)