aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/async.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/async.lua b/util/async.lua
index 7a8bd686..e8469e51 100644
--- a/util/async.lua
+++ b/util/async.lua
@@ -84,7 +84,9 @@ end
local function guarder()
local guards = {};
+ local default_id = {};
return function (id, func)
+ id = id or default_id;
local thread = checkthread();
local guard = guards[id];
if not guard then