Skip to content

Commit

Permalink
fix: failed to delete a running task (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
monkeyWie authored Dec 24, 2024
1 parent c970378 commit edd189a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/download/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ func (d *Downloader) watch(task *Task) {
}

// When delete a not resolved task, need check if the task resource is nil
if task.Meta.Res == nil {
if task.Meta.Res == nil || d.GetTask(task.ID) == nil {
return
}

Expand Down

0 comments on commit edd189a

Please sign in to comment.