Skip to content

Commit

Permalink
fix failling test
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Oct 2, 2024
1 parent 03150d9 commit 783f953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Timer {
this._expiry = now + this._list.ms
this._list.push(this)
} else {
if (this._refed === true) decRef()
if (this._refed === true) this.unref()
this._list = null
}
// apply at the bottom to avoid re-entries...
Expand All @@ -36,7 +36,7 @@ class Timer {
_clear () {
if (this._list === null) return
this._list.clear(this)
if (this._refed === true) decRef()
if (this._refed === true) this.unref()
this._list = null

maybeUpdateTimer()
Expand Down

0 comments on commit 783f953

Please sign in to comment.