aboutsummaryrefslogtreecommitdiffstats
path: root/util/events.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-05-05 00:41:39 +0200
committerKim Alvefur <zash@zash.se>2015-05-05 00:41:39 +0200
commit32707791498b7bb2437753b296f33d8348c06423 (patch)
treebd5767ea67ee7b0f3dcc5a367996f103a2335e2a /util/events.lua
parenta7606f77d99c798faa7067331e5b9ac0272c5ad1 (diff)
downloadprosody-32707791498b7bb2437753b296f33d8348c06423.tar.gz
prosody-32707791498b7bb2437753b296f33d8348c06423.zip
util.events: Add local reference to table.remove (fixes traceback)
Diffstat (limited to 'util/events.lua')
-rw-r--r--util/events.lua3
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