summaryrefslogtreecommitdiff
path: root/script-beta/await.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-09-27 01:37:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-09-27 01:37:25 +0800
commitd4f79cf74dffc4930b19029fc39090d27b048b44 (patch)
tree91d21b8c9ef313a157c4e66597b89c31d5f08e9f /script-beta/await.lua
parent30e6ffcf59b713b817823f8b0d3c8de282131562 (diff)
downloadlua-language-server-d4f79cf74dffc4930b19029fc39090d27b048b44.zip
更新快速修复
Diffstat (limited to 'script-beta/await.lua')
-rw-r--r--script-beta/await.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/await.lua b/script-beta/await.lua
index 00c2bcd0..95a63f4a 100644
--- a/script-beta/await.lua
+++ b/script-beta/await.lua
@@ -117,6 +117,9 @@ function m.wait(callback, ...)
return
end
waked = true
+ if coroutine.status(co) == 'dead' then
+ return
+ end
return m.checkResult(co, coroutine.resume(co, ...))
end, ...)
return coroutine.yield()