bugfix: coroutine pool

This commit is contained in:
Cloud Wu
2014-03-25 13:30:51 +08:00
parent 1fdce9941b
commit fd6e9a8bd1

View File

@@ -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