From ec5d7b1ec01113956d92ccf664bcce53ba5731ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Fri, 26 Feb 2021 12:43:14 +0100 Subject: [PATCH] src: fix variable name of OnCloseReceived callback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/37521 Reviewed-By: Darshan Sen Reviewed-By: Michaƫl Zasso Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- src/inspector_socket.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/inspector_socket.cc b/src/inspector_socket.cc index 9014bf3e3ff427..cacff747d08bc3 100644 --- a/src/inspector_socket.cc +++ b/src/inspector_socket.cc @@ -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 { } @@ -369,7 +369,7 @@ class WsHandler : public ProtocolHandler { } void WaitForCloseReply() { - OnCloseRecieved = &WsHandler::OnEof; + OnCloseReceived = &WsHandler::OnEof; } void SendClose() { @@ -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); @@ -406,7 +406,7 @@ class WsHandler : public ProtocolHandler { Callback OnCloseSent; - Callback OnCloseRecieved; + Callback OnCloseReceived; bool dispose_; };