This commit is contained in:
Mukhtar Akere
2025-02-28 20:48:30 +01:00
parent e741a0e32b
commit 0e25de0e3c

View File

@@ -91,11 +91,9 @@ func (q *QBit) ProcessFiles(torrent *Torrent, debridTorrent *debrid.Torrent, arr
torrent = q.UpdateTorrentMin(torrent, debridTorrent)
// Exit the loop for downloading statuses to prevent memory buildup
if slices.Contains(debridClient.GetDownloadingStatus(), debridTorrent.Status) {
q.logger.Debug().Msgf("Torrent is in %s state, exiting polling loop", debridTorrent.Status)
if !slices.Contains(debridClient.GetDownloadingStatus(), debridTorrent.Status) {
break
}
time.Sleep(time.Duration(q.RefreshInterval) * time.Second)
}
var (