From bd9e0a6d6fea780ff7fb9e0c0d7ea40149138021 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 24 Jul 2023 20:24:17 -0600 Subject: [PATCH] fix --- thread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {