Skip to content

Commit

Permalink
Merge pull request #59 from makasim/copy-on-execute
Browse files Browse the repository at this point in the history
copy state on execute
  • Loading branch information
makasim authored Nov 16, 2024
2 parents 522611d + 04889f9 commit d9f9e10
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 d9f9e10

Please sign in to comment.