diff options
| author | ruki <[email protected]> | 2019-12-15 15:30:13 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-12-15 15:33:26 +0800 |
| commit | f0cee734ed73e82364c07158b680d1399464a13e (patch) | |
| tree | e27ac61d70147ef203d7a28e739dab051d751890 /xmake/core/base | |
| parent | f72910c44225935a42b73b2b986c26f958efe5f7 (diff) | |
fix scheduler tests
Diffstat (limited to 'xmake/core/base')
| -rw-r--r-- | xmake/core/base/scheduler.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/scheduler.lua b/xmake/core/base/scheduler.lua index 486f04dc0..eefb46694 100644 --- a/xmake/core/base/scheduler.lua +++ b/xmake/core/base/scheduler.lua @@ -397,7 +397,7 @@ function scheduler:runloop() local ok = true local errors = nil local timeout = -1 - while self._STARTED do + while self._STARTED and self:co_count() > 0 do -- get the next timeout timeout = self:_timer():delay() or 1000 |
