Skip to content

Commit fc61ee3

Browse files
committed
http2: use session kUpdateTimer from kUpdateTimer
Reduces duplicated logic. PR-URL: #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]>
1 parent 93eb68e commit fc61ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/http2/core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1343,8 +1343,8 @@ class Http2Stream extends Duplex {
13431343
return;
13441344
if (this[kTimeout])
13451345
_unrefActive([kTimeout]);
1346-
if (this[kSession] && this[kSession][kTimeout])
1347-
_unrefActive(this[kSession][kTimeout]);
1346+
if (this[kSession])
1347+
this[kSession][kUpdateTimer]();
13481348
}
13491349

13501350
[kInit](id, handle) {

0 commit comments

Comments
 (0)