aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-22 23:15:04 +0100
committerKim Alvefur <zash@zash.se>2018-03-22 23:15:04 +0100
commit98482848cae3900932653ef3808203b03a950131 (patch)
tree9a30c28220b04fe92a824a88bbc76f050ff40591 /util
parentb0d2e9a3dec88b7376dcbce49aa69d21a0b2087d (diff)
downloadprosody-98482848cae3900932653ef3808203b03a950131.tar.gz
prosody-98482848cae3900932653ef3808203b03a950131.zip
util.async: Use wrapper for once runner (thanks luacheck)
Diffstat (limited to 'util')
-rw-r--r--util/async.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/async.lua b/util/async.lua
index e8469e51..f042b177 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -231,7 +231,7 @@ do
};
local function once_runner(func) func(); end
function once(func)
- local r = runner(func, once_watchers);
+ local r = runner(once_runner, once_watchers);
return r:run(func);
end
end