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