We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cadf7d commit 6acef48Copy full SHA for 6acef48
1 file changed
server/src/autograbber.rs
@@ -77,7 +77,10 @@ pub async fn run_autograbber(
77
.scan()
78
.primary::<SelectedTorrent>()?
79
.all()?
80
- .filter(|t| t.as_ref().is_ok_and(|t| t.grabber.as_ref() == Some(&name)))
+ .filter(|t| {
81
+ t.as_ref()
82
+ .is_ok_and(|t| t.grabber.as_ref() == Some(&name) && t.removed_at.is_none())
83
+ })
84
.count() as u64;
85
max_torrents = max_torrents.min(max_active_downloads.saturating_sub(downloading_torrents));
86
}
0 commit comments