mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
bugfix: coroutine pool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user