diff options
author | Kim Alvefur <zash@zash.se> | 2015-05-05 00:41:39 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-05-05 00:41:39 +0200 |
commit | 32707791498b7bb2437753b296f33d8348c06423 (patch) | |
tree | bd5767ea67ee7b0f3dcc5a367996f103a2335e2a /util | |
parent | a7606f77d99c798faa7067331e5b9ac0272c5ad1 (diff) | |
download | prosody-32707791498b7bb2437753b296f33d8348c06423.tar.gz prosody-32707791498b7bb2437753b296f33d8348c06423.zip |
util.events: Add local reference to table.remove (fixes traceback)
Diffstat (limited to 'util')
-rw-r--r-- | util/events.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/events.lua b/util/events.lua index 79de1151..81fbc13f 100644 --- a/util/events.lua +++ b/util/events.lua @@ -9,6 +9,7 @@ local pairs = pairs; local t_insert = table.insert; +local t_remove = table.remove; local t_sort = table.sort; local setmetatable = setmetatable; local next = next; @@ -118,7 +119,7 @@ function new() if not w then return; end for i = #w, 1 do if w[i] == wrapper then - table.remove(w, i); + t_remove(w, i); end end if #w == 0 then |