diff --git a/process/handlers.lua b/process/handlers.lua index 6507a916..7708f29d 100644 --- a/process/handlers.lua +++ b/process/handlers.lua @@ -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