util/async.lua
changeset 8930 ed0891383e78
parent 8791 7a9b680a79fb
child 8979 92f0876b9230
--- a/util/async.lua	Sat Jun 23 18:59:21 2018 +0200
+++ b/util/async.lua	Mon Jun 25 13:53:17 2018 +0100
@@ -126,6 +126,7 @@
 			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