summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-05 00:16:22 +0800
committerruki <[email protected]>2020-03-04 19:38:13 +0800
commitb9563696ad039ce9fc8da06d3c875b5696dad975 (patch)
tree097292a17204126d8c3a00360b53e4ea55b2107a
parent03c99967d1cec3c576ae124e7989336258521126 (diff)
fix scheduler
-rw-r--r--xmake/core/base/scheduler.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/base/scheduler.lua b/xmake/core/base/scheduler.lua
index 8d964249e..4239c36a9 100644
--- a/xmake/core/base/scheduler.lua
+++ b/xmake/core/base/scheduler.lua
@@ -263,10 +263,10 @@ function scheduler:_co_groups_resume()
for name, co_group in pairs(co_groups) do
-- get coroutine and limit in waiting group
- local co_group_waiting = co_group_waiting and co_groups_waiting[name] or nil
- if co_group_waiting then
- local co_waiting = co_group_waiting[1]
- local limit = co_group_waiting[2]
+ local item = co_groups_waiting and co_groups_waiting[name] or nil
+ if item then
+ local co_waiting = item[1]
+ local limit = item[2]
-- get dead coroutines count in this group
local count = 0