fix(route): nil panic when used as an idlewatcher dependency

This commit is contained in:
yusing
2025-12-05 01:10:48 +08:00
parent f721395ff0
commit 2157545e17

View File

@@ -394,6 +394,8 @@ func (r *Route) start(parent task.Parent) gperr.Error {
if err := r.impl.Start(parent); err != nil {
return err
}
} else { // required by idlewatcher
r.task = parent.Subtask("excluded."+r.Name(), false)
}
return nil
}