mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
committed by
Antoine du Hamel
parent
bfa6e37204
commit
837f29718f
@@ -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_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user