diff options
author | Tobias Nießen <tniessen@tnie.de> | 2021-02-26 14:43:14 +0300 |
---|---|---|
committer | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2021-03-13 11:40:12 +0300 |
commit | 837f29718fa3a8b2fa989539ecf680e13d87a8cd (patch) | |
tree | 8e627ac2e2e76b53e5c8bfab41b66f9c30925fc0 /src/inspector_socket.cc | |
parent | bfa6e37204f1343c8a340f44c923858833da55b8 (diff) |
src: fix variable name of OnCloseReceived callback
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'src/inspector_socket.cc')
-rw-r--r-- | src/inspector_socket.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/inspector_socket.cc b/src/inspector_socket.cc index 9014bf3e3ff..cacff747d08 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_; }; |