mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 10:31:36 +00:00
fix: signal null typerror
TypeError: Cannot read properties of null (reading 'signal')
This commit is contained in:
parent
e45516d73a
commit
7db3cb0b59
@ -129,7 +129,7 @@ class HTTPTracker extends Tracker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cleanup = () => {
|
const cleanup = () => {
|
||||||
if (!controller.signal.aborted) {
|
if (!controller?.signal && !controller.signal.aborted) {
|
||||||
arrayRemove(this.cleanupFns, this.cleanupFns.indexOf(cleanup))
|
arrayRemove(this.cleanupFns, this.cleanupFns.indexOf(cleanup))
|
||||||
controller.abort()
|
controller.abort()
|
||||||
controller = null
|
controller = null
|
||||||
|
Loading…
Reference in New Issue
Block a user