fix: treat paused as stopped state in wait_for_aria2_stopped

This commit is contained in:
NimBold
2026-06-25 14:34:24 +03:30
parent 069c1b6788
commit 9fdb6f1647
+1 -1
View File
@@ -3055,7 +3055,7 @@ async fn force_remove_aria2_gid(port: u16, secret: &str, gid: &str) -> Result<()
async fn wait_for_aria2_stopped(port: u16, secret: &str, gid: &str) -> Result<(), String> {
for _ in 0..30 {
match aria2_download_status(port, secret, gid).await {
Ok(status) if matches!(status.as_str(), "complete" | "error" | "removed") => {
Ok(status) if matches!(status.as_str(), "paused" | "complete" | "error" | "removed") => {
return Ok(());
}
Ok(_) => {}