mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: coroutine pool
This commit is contained in:
@@ -116,7 +116,7 @@ local function co_create(f)
|
|||||||
f(...)
|
f(...)
|
||||||
while true do
|
while true do
|
||||||
f = nil
|
f = nil
|
||||||
coroutine_pool[#coroutine_pool] = co
|
coroutine_pool[#coroutine_pool+1] = co
|
||||||
f = coroutine_yield "EXIT"
|
f = coroutine_yield "EXIT"
|
||||||
f(coroutine_yield())
|
f(coroutine_yield())
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user