add missing recover panic in subturn.go (#2253)
This commit is contained in:
parent
49e61fa07f
commit
9ac21c5908
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ func deliverSubTurnResult(al *AgentLoop, parentTS *turnState, childID string, re
|
|||
// We use defer/recover to catch any unlikely channel panics if it were ever closed.
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
logger.RecoverPanicNoExit(r)
|
||||
logger.WarnCF("subturn", "recovered panic sending to pendingResults", map[string]any{
|
||||
"parent_id": parentTS.turnID,
|
||||
"child_id": childID,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue