From fc61ee32fedd5d0bd9bc1dee2b87a41dd7ffa4dd Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Sun, 17 Dec 2017 00:28:08 -0500 Subject: [PATCH] http2: use session kUpdateTimer from kUpdateTimer Reduces duplicated logic. PR-URL: https://github.com/nodejs/node/pull/17704 Reviewed-By: Anna Henningsen Reviewed-By: Matteo Collina Reviewed-By: James M Snell Reviewed-By: Anatoli Papirovski --- lib/internal/http2/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index ff5e88f6c65910..cf063e5f9b7f05 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -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) {