diff --git a/thread.go b/thread.go index 41da0b9..1cfcb33 100644 --- a/thread.go +++ b/thread.go @@ -542,7 +542,7 @@ func ThreadStartChild(ctx *Context, node ThreadNode, signal GraphSignal) (string if exists == false { return fmt.Errorf("%s is not a child of %s", sig.ID, thread.ID()) } - return UpdateStates(context, thread, NewLockInfo(info.Child, []string{"start"}), func(context *StateContext) error { + return UpdateStates(context, node, NewLockInfo(info.Child, []string{"start"}), func(context *StateContext) error { parent_info, exists := info.Infos["parent"].(*ParentThreadInfo) if exists == false {