Skip to content

Commit

Permalink
Always unregister after OnLoad
Browse files Browse the repository at this point in the history
p3lim committed Jul 23, 2024
1 parent 6876691 commit 6b18a2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/event.lua
Original file line number Diff line number Diff line change
@@ -333,9 +333,8 @@ addon = setmetatable(addon, {
local successful, ret = pcall(value, self)
if not successful then
error(ret)
else
return true -- unregister event
end
return true -- unregister event
end
end)
elseif IsEventValid(key) then

0 comments on commit 6b18a2e

Please sign in to comment.