diff --git a/lib/client/http-tracker.js b/lib/client/http-tracker.js index 678f7a2..db2ceeb 100644 --- a/lib/client/http-tracker.js +++ b/lib/client/http-tracker.js @@ -129,7 +129,7 @@ class HTTPTracker extends Tracker { } const cleanup = () => { - if (!controller.signal.aborted) { + if (!controller?.signal && !controller.signal.aborted) { arrayRemove(this.cleanupFns, this.cleanupFns.indexOf(cleanup)) controller.abort() controller = null