diff --git a/src/ricTracker.ts b/src/ricTracker.ts index 569729d..4558a78 100644 --- a/src/ricTracker.ts +++ b/src/ricTracker.ts @@ -49,6 +49,10 @@ class RicTracker { } stop() { + if (!this.available) { + return + } + cancelIdleCallback(this.#idleCallbackId) this.#idleCallbackId = undefined }