Skip to content

Commit

Permalink
copy state on execute
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Nov 16, 2024
1 parent 522611d commit 04889f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ func (e *Engine) do(cmd0 Command) error {
return nil
}

stateCtx := cmd.StateCtx.CopyTo(&StateCtx{})
go func() {
stateCtx := cmd.StateCtx
if err := e.Execute(stateCtx); err != nil {
e.l.Error("execute failed",
"sess", stateCtx.SessID(),
Expand Down

0 comments on commit 04889f9

Please sign in to comment.