From c7b1458e21a435b75900d574415627af9afd49f7 Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Sat, 10 Nov 2018 21:13:18 -0600 Subject: [PATCH] Always remove the first task queue --- async.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/async.lua b/async.lua index e551860..2f04005 100644 --- a/async.lua +++ b/async.lua @@ -179,8 +179,8 @@ function extended_api.Async.queue_task(pool,func,callback) local maxtime = pool.maxtime while(true) do local task_func = pool.task_queue[1] + table.remove(pool.task_queue,1) if task_func and task_func.func then - table.remove(pool.task_queue,1) pass_arg = {} local p = task_func.func(pass_arg) if p then