mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 20:21: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 = () => {
|
||||
if (!controller.signal.aborted) {
|
||||
if (!controller?.signal && !controller.signal.aborted) {
|
||||
arrayRemove(this.cleanupFns, this.cleanupFns.indexOf(cleanup))
|
||||
controller.abort()
|
||||
controller = null
|
||||
|
Loading…
Reference in New Issue
Block a user