Skip to content

Commit d28ce32

Browse files
tniessendanielleadams
authored andcommittedMar 16, 2021
src: fix variable name of OnCloseReceived callback
PR-URL: #37521 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e7fc7a4 commit d28ce32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/inspector_socket.cc

+4-4
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ class WsHandler : public ProtocolHandler {
318318
WsHandler(InspectorSocket* inspector, TcpHolder::Pointer tcp)
319319
: ProtocolHandler(inspector, std::move(tcp)),
320320
OnCloseSent(&WsHandler::WaitForCloseReply),
321-
OnCloseRecieved(&WsHandler::CloseFrameReceived),
321+
OnCloseReceived(&WsHandler::CloseFrameReceived),
322322
dispose_(false) { }
323323

324324
void AcceptUpgrade(const std::string& accept_key) override { }
@@ -369,7 +369,7 @@ class WsHandler : public ProtocolHandler {
369369
}
370370

371371
void WaitForCloseReply() {
372-
OnCloseRecieved = &WsHandler::OnEof;
372+
OnCloseReceived = &WsHandler::OnEof;
373373
}
374374

375375
void SendClose() {
@@ -396,7 +396,7 @@ class WsHandler : public ProtocolHandler {
396396
OnEof();
397397
bytes_consumed = 0;
398398
} else if (r == FRAME_CLOSE) {
399-
(this->*OnCloseRecieved)();
399+
(this->*OnCloseReceived)();
400400
bytes_consumed = 0;
401401
} else if (r == FRAME_OK) {
402402
delegate()->OnWsFrame(output);
@@ -406,7 +406,7 @@ class WsHandler : public ProtocolHandler {
406406

407407

408408
Callback OnCloseSent;
409-
Callback OnCloseRecieved;
409+
Callback OnCloseReceived;
410410
bool dispose_;
411411
};
412412

0 commit comments

Comments
 (0)
Please sign in to comment.