Skip to content

Commit

Permalink
already released returns false
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Dec 19, 2024
1 parent 9300665 commit b59d743
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ end
---@param force? boolean if true, releases the state regardless of the number of locks on it
---@return boolean lastReleaser true if the state is fully released after this function
local function releaseState(name, force)
if not states[name] then return true end
if not states[name] then return false end
if states[name] <= 1 or force then
states[name] = nil
if config.states[name]?.onRelease() then
Expand Down

0 comments on commit b59d743

Please sign in to comment.