From 15074015b384788ad1e6542f4e130088f77a8cc2 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sun, 15 Mar 2020 09:18:15 +0800 Subject: [PATCH] Fix: file not deleted when aria2 download complete --- pkg/task/tranfer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/task/tranfer.go b/pkg/task/tranfer.go index 0d2a7ca..7f03df4 100644 --- a/pkg/task/tranfer.go +++ b/pkg/task/tranfer.go @@ -78,6 +78,8 @@ func (job *TransferTask) GetError() *JobError { // Do 开始执行任务 func (job *TransferTask) Do() { + defer job.Recycle() + // 创建文件系统 fs, err := filesystem.NewFileSystem(job.User) if err != nil {