mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-01 14:43:07 +02:00
fix shutdown stuck or panic
This commit is contained in:
@@ -117,9 +117,7 @@ func (t *Task) finish(reason any) {
|
||||
Strs("callbacks", t.listCallbacks()).
|
||||
Msg("Timeout waiting for callbacks to finish")
|
||||
}
|
||||
if t.finished != nil {
|
||||
close(t.finished)
|
||||
}
|
||||
close(t.finished)
|
||||
if t == root {
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user