mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2024-12-12 18:36:28 +00:00
Bugfix - when using AbortController, errors on resulting stream must be caught (#539)
* use-native-fetch
* Bugfix: `res.body` should handle errors according to https://github.com/nodejs/undici/issues/3353#issuecomment-2184635954
* Revert "use-native-fetch"
This reverts commit d65460319e
.
* fix-quotes
* some-build-targets-return-different-output
This commit is contained in:
parent
f2f4990501
commit
e45516d73a
@ -150,6 +150,7 @@ class HTTPTracker extends Tracker {
|
||||
'user-agent': this.client._userAgent || ''
|
||||
}
|
||||
})
|
||||
if (res.body.on) res.body.on('error', cb)
|
||||
} catch (err) {
|
||||
if (err) return cb(err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user