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: #17704
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
  • 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.