aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-24 22:58:46 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-24 22:58:46 +0100
commit242241c85ca6541378a914b10467dd0c9f81ffaf (patch)
tree61c1b4ef8ad195dbaef98db2fbacb1fa86e0f530 /util
parentfb4a0b521b82a3ef5bd18d5a9da98a8a43d37e4d (diff)
downloadprosody-242241c85ca6541378a914b10467dd0c9f81ffaf.tar.gz
prosody-242241c85ca6541378a914b10467dd0c9f81ffaf.zip
util.events: Fix loop construct (negative step required)
Diffstat (limited to 'util')
-rw-r--r--util/events.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/events.lua b/util/events.lua
index e2943e44..6e13619c 100644
--- a/util/events.lua
+++ b/util/events.lua
@@ -125,7 +125,7 @@ local function new()
w = wrappers[event_name];
end
if not w then return; end
- for i = #w, 1 do
+ for i = #w, 1, -1 do
if w[i] == wrapper then
t_remove(w, i);
end