fix 2 electric boogaloo

graph-rework-2
noah metz 2023-07-24 20:37:41 -06:00
parent 264f31ad9a
commit cfc1048007
1 changed files with 2 additions and 2 deletions

@ -587,7 +587,7 @@ func ThreadStart(ctx * Context, node ThreadNode) (string, error) {
thread := node.ThreadHandle() thread := node.ThreadHandle()
context := NewWriteContext(ctx) context := NewWriteContext(ctx)
err := UpdateStates(context, thread, NewLockInfo(thread, []string{"state"}), func(context *StateContext) error { err := UpdateStates(context, thread, NewLockInfo(thread, []string{"state"}), func(context *StateContext) error {
err := LockLockables(context, map[NodeID]LockableNode{thread.ID(): thread}, thread) err := LockLockables(context, map[NodeID]LockableNode{node.ID(): node}, node)
if err != nil { if err != nil {
return err return err
} }
@ -598,7 +598,7 @@ func ThreadStart(ctx * Context, node ThreadNode) (string, error) {
} }
context = NewReadContext(ctx) context = NewReadContext(ctx)
return "wait", Signal(context, thread, thread, NewStatusSignal("started", thread.ID())) return "wait", Signal(context, node, node, NewStatusSignal("started", node.ID()))
} }
func ThreadWait(ctx * Context, node ThreadNode) (string, error) { func ThreadWait(ctx * Context, node ThreadNode) (string, error) {