From cf8648f6159d8a6126ce733669b13dffff117226 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 26 Jun 2023 23:12:43 -0600 Subject: [PATCH] Chane UnlockLockable recursiveness --- lockable.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lockable.go b/lockable.go index 15b14d8..59e9937 100644 --- a/lockable.go +++ b/lockable.go @@ -311,7 +311,7 @@ func UnlockLockable(ctx * GraphContext, lockable Lockable, node GraphNode, node_ var lock_err error = nil for _, requirement := range(lockable_state.Requirements()) { var err error = nil - err = UnlockLockable(ctx, requirement, node, node_state) + err = UnlockLockable(ctx, requirement, lockable, lockable_state) if err != nil { lock_err = err break @@ -391,7 +391,7 @@ func LockLockable(ctx * GraphContext, lockable Lockable, node GraphNode, node_st if lock_err != nil { for _, locked_lockable := range(locked_requirements) { - err = UnlockLockable(ctx, locked_lockable, node, node_state) + err = UnlockLockable(ctx, locked_lockable, lockable, lockable_state) if err != nil { panic(err) }