aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-04-24 22:59:41 +0100
committerMatthew Wild <mwild1@gmail.com>2018-04-24 22:59:41 +0100
commit5a19b1b2aafbbeace63ff268a8f4be11fcf8ec93 (patch)
tree32738193f40c5114889c72612fe0dfbffa325d38 /util
parent5e9616894f9b8a07addc25dd24654367775e8602 (diff)
parent9972a600aa6cffdf59737172caf79e55713f3c59 (diff)
downloadprosody-5a19b1b2aafbbeace63ff268a8f4be11fcf8ec93.tar.gz
prosody-5a19b1b2aafbbeace63ff268a8f4be11fcf8ec93.zip
Merge 0.10->trunk
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 78700d65..0bf0ddcb 100644
--- a/util/events.lua
+++ b/util/events.lua
@@ -127,7 +127,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