fix: not exist

This commit is contained in:
Simon Ding
2024-07-12 17:00:28 +08:00
parent ddfd36c7d8
commit b5ddbfec06

View File

@@ -25,7 +25,7 @@ func (s *Server) checkTasks() {
log.Infof("begin check tasks...")
for id, t := range s.tasks {
if !t.Exists() {
log.Infof("task no longer exists: %v", t.Name())
log.Infof("task no longer exists: %v", id)
continue
}
log.Infof("task (%s) percentage done: %d%%", t.Name(), t.Progress())