Skip to content

Commit

Permalink
src: fix variable name of OnCloseReceived callback
Browse files Browse the repository at this point in the history
PR-URL: #37521
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
tniessen authored and targos committed May 1, 2021
1 parent c51a60c commit ec5d7b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/inspector_socket.cc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class WsHandler : public ProtocolHandler {
WsHandler(InspectorSocket* inspector, TcpHolder::Pointer tcp)
: ProtocolHandler(inspector, std::move(tcp)),
OnCloseSent(&WsHandler::WaitForCloseReply),
OnCloseRecieved(&WsHandler::CloseFrameReceived),
OnCloseReceived(&WsHandler::CloseFrameReceived),
dispose_(false) { }

void AcceptUpgrade(const std::string& accept_key) override { }
Expand Down Expand Up @@ -369,7 +369,7 @@ class WsHandler : public ProtocolHandler {
}

void WaitForCloseReply() {
OnCloseRecieved = &WsHandler::OnEof;
OnCloseReceived = &WsHandler::OnEof;
}

void SendClose() {
Expand All @@ -396,7 +396,7 @@ class WsHandler : public ProtocolHandler {
OnEof();
bytes_consumed = 0;
} else if (r == FRAME_CLOSE) {
(this->*OnCloseRecieved)();
(this->*OnCloseReceived)();
bytes_consumed = 0;
} else if (r == FRAME_OK) {
delegate()->OnWsFrame(output);
Expand All @@ -406,7 +406,7 @@ class WsHandler : public ProtocolHandler {


Callback OnCloseSent;
Callback OnCloseRecieved;
Callback OnCloseReceived;
bool dispose_;
};

Expand Down

0 comments on commit ec5d7b1

Please sign in to comment.