mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-12 20:47:22 +00:00
fix: close post-release lifecycle state gaps
This commit is contained in:
@@ -3515,6 +3515,12 @@ async fn pause_download(
|
||||
state.queue_manager.next_aria2_control_epoch(&id).await;
|
||||
state.queue_manager.cancel_aria2_retries(&id).await;
|
||||
if retrying && matches!(terminal, "error" | "removed") {
|
||||
// The terminal GID was forgotten above, so this
|
||||
// lifecycle can no longer be resumed in place. Release
|
||||
// backend ownership as well; otherwise a paused row
|
||||
// keeps a dead registration until another command happens
|
||||
// to repair it.
|
||||
state.queue_manager.release_registered_id(&id).await;
|
||||
use tauri::Emitter;
|
||||
let _ = app_handle.emit(
|
||||
"download-state",
|
||||
|
||||
Reference in New Issue
Block a user