Skip to content

Commit

Permalink
Merge pull request #366 from permaweb/jfrain99/only-remove-handler-if…
Browse files Browse the repository at this point in the history
…-name-match

fix(aos): only remove handler if name matches
  • Loading branch information
twilson63 authored Oct 15, 2024
2 parents 6bd8ead + 33c6085 commit 4c545e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion process/handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ function handlers.remove(name)
end

local idx = findIndexByProp(handlers.list, "name", name)
table.remove(handlers.list, idx)
if idx ~= nil and idx > 0 then
table.remove(handlers.list, idx)
end

end

Expand Down

0 comments on commit 4c545e0

Please sign in to comment.