Permalink
Browse files

http2: use session kUpdateTimer from kUpdateTimer

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 17, 2017
1 parent 93eb68e commit fc61ee32fedd5d0bd9bc1dee2b87a41dd7ffa4dd
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/internal/http2/core.js
@@ -1343,8 +1343,8 @@ class Http2Stream extends Duplex {
return; return;
if (this[kTimeout]) if (this[kTimeout])
_unrefActive([kTimeout]); _unrefActive([kTimeout]);
if (this[kSession] && this[kSession][kTimeout]) if (this[kSession])
_unrefActive(this[kSession][kTimeout]); this[kSession][kUpdateTimer]();
} }
[kInit](id, handle) { [kInit](id, handle) {

0 comments on commit fc61ee3

Please sign in to comment.