From 0e25de0e3c79e93177815c5d4d61d07c441842e9 Mon Sep 17 00:00:00 2001 From: Mukhtar Akere Date: Fri, 28 Feb 2025 20:48:30 +0100 Subject: [PATCH] Hotfix --- pkg/qbit/torrent.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/qbit/torrent.go b/pkg/qbit/torrent.go index 2867f4a..de5fed1 100644 --- a/pkg/qbit/torrent.go +++ b/pkg/qbit/torrent.go @@ -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 (