graph-rework-2
noah metz 2023-07-23 23:55:32 -06:00
parent 8d94e04b07
commit a97b47af1b
1 changed files with 1 additions and 3 deletions

@ -425,9 +425,7 @@ func LockLockables(context *StateContext, to_lock []Lockable, new_owner Lockable
if owner.ID() == new_owner.ID() { if owner.ID() == new_owner.ID() {
continue continue
} else { } else {
err := UpdateStates(context, new_owner, NewLockMap( err := UpdateStates(context, new_owner, NewLockInfo(owner, []string{"take_lock"}), func(context *StateContext)(error){
NewLockInfo(owner, []string{"take_lock"})
), func(context *StateContext)(error){
return LockLockables(context, req.Requirements(), req) return LockLockables(context, req.Requirements(), req)
}) })
if err != nil { if err != nil {