GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: fix variable name of OnCloseReceived callback · nodejs/node@ec5d7b1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • inspector_socket.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/inspector_socket.cc‎

Copy file name to clipboardExpand all lines: src/inspector_socket.cc
+4-4Lines changed: 4 additions & 4 deletions
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 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.