From 977c19efdeada4bb391b3820a9c4f4f49cf731ed Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Wed, 17 Apr 2019 19:08:23 -0500 Subject: [PATCH] Do: not run schedule again on thread death --- async.lua | 2 -- 1 file changed, 2 deletions(-) diff --git a/async.lua b/async.lua index d6e4811..5e95996 100644 --- a/async.lua +++ b/async.lua @@ -34,7 +34,6 @@ function extended_api.Async() local thread = self.pool.threads[index] if not thread or coroutine.status(thread) == "dead" then table.remove(self.pool.threads, index) - minetest.after(0, self.schedule_worker) return false else coroutine.resume(thread) @@ -47,7 +46,6 @@ function extended_api.Async() local thread = self.pool.globalstep_threads[index] if not thread or coroutine.status(thread) == "dead" then table.remove(self.pool.globalstep_threads, index) - minetest.after(0, self.schedule_globalstep_worker) return false else coroutine.resume(thread)