diff options
| author | ruki <[email protected]> | 2022-02-08 10:49:28 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-08 10:49:28 +0800 |
| commit | 6b74a4dcd274cf96f3b224975ca8a4580ebc0f65 (patch) | |
| tree | c38cbda0839b5a278e9d7431449a0d4576bb54f0 /xmake/core/base/coroutine.lua | |
| parent | c80d0c5638f83d7de838a09554daa48800c71fe3 (diff) | |
| parent | a4a168088d6032427769b0c9f1405e2eebcd5c66 (diff) | |
Merge pull request #2032 from xmake-io/catch
catch ctrl-c to get backtrace of stuck
Diffstat (limited to 'xmake/core/base/coroutine.lua')
| -rw-r--r-- | xmake/core/base/coroutine.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/core/base/coroutine.lua b/xmake/core/base/coroutine.lua index 2f1c347a8..43a5d6d8a 100644 --- a/xmake/core/base/coroutine.lua +++ b/xmake/core/base/coroutine.lua @@ -31,8 +31,6 @@ coroutine._resume = coroutine._resume or coroutine.resume -- resume coroutine function coroutine.resume(co, ...) - - -- resume it local ok, results = coroutine._resume(co, ...) if not ok then @@ -47,12 +45,8 @@ function coroutine.resume(co, ...) errors = results:sub(pos + 1) end end - - -- failed return false, errors end - - -- ok return true, results end |
