Skip to content

Commit

Permalink
fix: no peers condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Aug 27, 2024
1 parent 7957f2f commit d1a2f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/modules/webtorrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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?.()
Expand Down

0 comments on commit d1a2f71

Please sign in to comment.