Skip to content

Commit fea072d

Browse files
authored
Trigger wsHander onClose from closeConnection()
In case closeConnection() is called due to SSL reported error - like session disconnection due to unstable Wifi - onClose() should be called to free up the recorded websocket handlers.
1 parent daf6ca1 commit fea072d

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
@@ -133,6 +133,7 @@ void HTTPConnection::closeConnection() {
133133

134134
if (_httpHeaders != NULL) {
135135
HTTPS_LOGD("Free headers");
136+
_wsHandler->onClose();
136137
delete _httpHeaders;
137138
_httpHeaders = NULL;
138139
}

0 commit comments

Comments
 (0)