fix: no peers condition

This commit is contained in:
ThaUnknown 2024-08-27 13:01:16 +02:00 committed by NoCrypt
parent 3ef10df57d
commit e0d2e942af

View file

@ -310,7 +310,7 @@ export default class TorrentClient extends WebTorrent {
setTimeout(() => {
if (torrent.destroyed || skipVerify) return
if (!torrent.progress || !torrent.ready) {
if (!torrent.progress && !torrent.ready) {
if (torrent.numPeers === 0) this.dispatchError('No peers found for torrent, try using a different torrent.')
}
}, 10000).unref?.()