Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http2: Prevent unnecessary listeners from being registered #27987

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix linter errors
  • Loading branch information
akukas authored May 30, 2019
commit f46ba036804b3b34f29920217a0a7033716fb1f2
2 changes: 1 addition & 1 deletion lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1485,7 +1485,7 @@ class ClientHttp2Session extends Http2Session {
} else {
this[kPendingRequestCalls] = [onConnect];
this.once('connect', () => {
this[kPendingRequestCalls].forEach(f => f());
this[kPendingRequestCalls].forEach((f) => f());
delete this[kPendingRequestCalls];
akukas marked this conversation as resolved.
Show resolved Hide resolved
});
}
Expand Down