mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-24 11:07:02 +08:00
feat(task): allow retry canceled (#7852)
This commit is contained in:
@@ -28,6 +28,7 @@ type DownloadTask struct {
|
||||
}
|
||||
|
||||
func (t *DownloadTask) Run() error {
|
||||
t.ReinitCtx()
|
||||
t.ClearEndTime()
|
||||
t.SetStartTime(time.Now())
|
||||
defer func() { t.SetEndTime(time.Now()) }()
|
||||
|
||||
Reference in New Issue
Block a user