Diff

util/async.lua @ 8669:2aa85b0cd2b8

util.async: Use wrapper for once runner (thanks luacheck)
author Kim Alvefur <zash@zash.se>
date Thu, 22 Mar 2018 23:15:04 +0100
parent 8655:ba6a6a04b46c
child 8681:0c077800cd70
line wrap: on
line diff
--- a/util/async.lua	Thu Mar 22 21:54:59 2018 +0000
+++ b/util/async.lua	Thu Mar 22 23:15:04 2018 +0100
@@ -231,7 +231,7 @@
 	};
 	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