mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-26 19:11:08 +01:00
fixed healthcheck failed to disable and nil dereference
This commit is contained in:
@@ -160,7 +160,11 @@ func (t *task) Context() context.Context {
|
||||
}
|
||||
|
||||
func (t *task) FinishCause() error {
|
||||
return context.Cause(t.ctx)
|
||||
cause := context.Cause(t.ctx)
|
||||
if cause == nil {
|
||||
return t.ctx.Err()
|
||||
}
|
||||
return cause
|
||||
}
|
||||
|
||||
func (t *task) Parent() Task {
|
||||
|
||||
Reference in New Issue
Block a user