Modify: delete temp file inside monitor lifecycle

This commit is contained in:
HFO4
2020-02-08 10:02:08 +08:00
parent 096483b6ee
commit 356ac8d608
3 changed files with 12 additions and 13 deletions

View File

@@ -101,6 +101,7 @@ func (monitor *Monitor) Update() bool {
case "removed":
monitor.Task.Status = Canceled
monitor.Task.Save()
monitor.RemoveTempFolder()
return true
default:
util.Log().Warning("下载任务[%s]返回未知状态信息[%s]", monitor.Task.GID, status.Status)