Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Apr 22, 2020
1 parent 0b468f4 commit 05df7f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -1720,7 +1720,6 @@ added: v8.4.0
The `'sessionError'` event is emitted when an `'error'` event is emitted by
an `Http2Session` object associated with the `Http2Server`.


#### Event: `'stream'`
<!-- YAML
added: v8.4.0
Expand Down
3 changes: 2 additions & 1 deletion lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -2793,9 +2793,10 @@ function sessionOnPriority(stream, parent, weight, exclusive) {
}

function sessionOnError(error) {
if (this[kServer] !== undefined)
if (this[kServer] !== undefined) {
this[kServer].emit('sessionError', error, this);
this[kServer].emit('aborted', error, this);
}
}

// When the session times out on the server, try emitting a timeout event.
Expand Down

0 comments on commit 05df7f1

Please sign in to comment.