Skip to content

Commit 2bf7522

Browse files
authored
correct the copy-paste error
1 parent 985b902 commit 2bf7522

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HTTPConnection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ void HTTPConnection::closeConnection() {
133133

134134
if (_httpHeaders != NULL) {
135135
HTTPS_LOGD("Free headers");
136-
_wsHandler->onClose();
137136
delete _httpHeaders;
138137
_httpHeaders = NULL;
139138
}
140139

141140
if (_wsHandler != nullptr) {
142141
HTTPS_LOGD("Free WS Handler");
142+
_wsHandler->onClose();
143143
delete _wsHandler;
144144
_wsHandler = NULL;
145145
}

0 commit comments

Comments
 (0)