Skip to content

Commit

Permalink
http2: use session kUpdateTimer from kUpdateTimer
Browse files Browse the repository at this point in the history
Reduces duplicated logic.

PR-URL: nodejs#17704
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anatoli Papirovski <[email protected]>
  • Loading branch information
Fishrock123 committed Dec 20, 2017
1 parent 93eb68e commit fc61ee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1343,8 +1343,8 @@ class Http2Stream extends Duplex {
return;
if (this[kTimeout])
_unrefActive([kTimeout]);
if (this[kSession] && this[kSession][kTimeout])
_unrefActive(this[kSession][kTimeout]);
if (this[kSession])
this[kSession][kUpdateTimer]();
}

[kInit](id, handle) {
Expand Down

0 comments on commit fc61ee3

Please sign in to comment.