diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-04-24 22:58:46 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-04-24 22:58:46 +0100 |
commit | 61ffb86424eb6e92728280e7c2c146f6fae1fa7e (patch) | |
tree | 61c1b4ef8ad195dbaef98db2fbacb1fa86e0f530 | |
parent | 545bb3107c7eb773a4db40719f0ebd2901a30ef3 (diff) | |
download | prosody-61ffb86424eb6e92728280e7c2c146f6fae1fa7e.tar.gz prosody-61ffb86424eb6e92728280e7c2c146f6fae1fa7e.zip |
util.events: Fix loop construct (negative step required)
-rw-r--r-- | util/events.lua | 2 |
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 |