Commit e5c68cd
timers: fix refresh for expired timers
Expired timers were not being refresh correctly and
would always act as unrefed if refresh was called.
PR-URL: #27345
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent facee2a commit e5c68cdCopy full SHA for e5c68cd
File tree
Expand file treeCollapse file tree
3 files changed
+43
-23
lines changedOpen diff view settings
Filter options
- lib
- internal
- test/parallel
Expand file treeCollapse file tree
3 files changed
+43
-23
lines changedOpen diff view settings
Collapse file
+23-17Lines changed: 23 additions & 17 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
209 | 209 | |
210 | 210 | |
211 | 211 | |
212 | | - |
| 212 | + |
| 213 | + |
213 | 214 | |
214 | 215 | |
215 | 216 | |
216 | 217 | |
217 | 218 | |
218 | | - |
| 219 | + |
219 | 220 | |
220 | | - |
| 221 | + |
| 222 | + |
221 | 223 | |
222 | 224 | |
223 | 225 | |
224 | 226 | |
225 | 227 | |
226 | | - |
| 228 | + |
227 | 229 | |
228 | 230 | |
229 | 231 | |
| ||
317 | 319 | |
318 | 320 | |
319 | 321 | |
320 | | - |
| 322 | + |
| 323 | + |
321 | 324 | |
322 | 325 | |
323 | 326 | |
324 | 327 | |
325 | | - |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
326 | 332 | |
327 | 333 | |
328 | 334 | |
| ||
519 | 525 | |
520 | 526 | |
521 | 527 | |
522 | | - |
523 | | - |
524 | | - |
525 | | - |
526 | | - |
527 | | - |
| 528 | + |
528 | 529 | |
| 530 | + |
| 531 | + |
| 532 | + |
| 533 | + |
| 534 | + |
| 535 | + |
529 | 536 | |
530 | 537 | |
531 | 538 | |
| ||
546 | 553 | |
547 | 554 | |
548 | 555 | |
549 | | - |
| 556 | + |
| 557 | + |
| 558 | + |
550 | 559 | |
551 | 560 | |
552 | | - |
553 | 561 | |
554 | | - |
| 562 | + |
555 | 563 | |
556 | | - |
557 | | - |
558 | 564 | |
559 | 565 | |
560 | 566 | |
|
Collapse file
+6-6Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
64 | 64 | |
65 | 65 | |
66 | 66 | |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
67 | 72 | |
68 | | - |
69 | | - |
70 | | - |
| 73 | + |
71 | 74 | |
72 | | - |
73 | | - |
74 | 75 | |
75 | 76 | |
76 | 77 | |
| ||
91 | 92 | |
92 | 93 | |
93 | 94 | |
94 | | - |
95 | 95 | |
96 | 96 | |
97 | 97 | |
|
Collapse file
test/parallel/test-timers-refresh.js
Copy file name to clipboardExpand all lines: test/parallel/test-timers-refresh.js+14Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
75 | 89 | |
76 | 90 | |
77 | 91 | |
|
0 commit comments