Change lockable recursiveness

graph-rework-2
noah metz 2023-06-26 23:10:18 -06:00
parent 94ef8ca3d0
commit 6c1887ed76
1 changed files with 1 additions and 1 deletions

@ -381,7 +381,7 @@ func LockLockable(ctx * GraphContext, lockable Lockable, node GraphNode, node_st
var lock_err error = nil var lock_err error = nil
locked_requirements := []Lockable{} locked_requirements := []Lockable{}
for _, requirement := range(lockable_state.Requirements()) { for _, requirement := range(lockable_state.Requirements()) {
err = LockLockable(ctx, requirement, node, node_state) err = LockLockable(ctx, requirement, lockable, lockable_state)
if err != nil { if err != nil {
lock_err = err lock_err = err
break break