From fd6e9a8bd16a64547c5fab7852b85e11ff0d90b4 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Tue, 25 Mar 2014 13:30:51 +0800 Subject: [PATCH] bugfix: coroutine pool --- lualib/skynet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/skynet.lua b/lualib/skynet.lua index 4652ce3c..f9b36ecb 100644 --- a/lualib/skynet.lua +++ b/lualib/skynet.lua @@ -116,7 +116,7 @@ local function co_create(f) f(...) while true do f = nil - coroutine_pool[#coroutine_pool] = co + coroutine_pool[#coroutine_pool+1] = co f = coroutine_yield "EXIT" f(coroutine_yield()) end