From bd47ba30c2e460087ec8f3eb9ff829a20dec92b7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 25 Jun 2018 13:53:17 +0100 Subject: util.async: Copy hooks from main thread into coroutines --- util/async.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/util/async.lua b/util/async.lua index 46a64ecb..0d19af6e 100644 --- a/util/async.lua +++ b/util/async.lua @@ -126,6 +126,7 @@ local function runner_create_thread(func, self) func(coroutine.yield("ready", self)); end end); + debug.sethook(thread, debug.gethook()); assert(coroutine.resume(thread, self)); -- Start it up, it will return instantly to wait for the first input return thread; end -- cgit v1.2.3