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) }