summaryrefslogtreecommitdiff
path: root/server/src/task.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-24 12:15:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-24 12:15:23 +0800
commit221b378fa69132808a5d396b777866338cbe65a0 (patch)
tree4ead03112770e7f9beb30bab917f1b9e64582fdb /server/src/task.lua
parent859bf22a7d50473ae796f9a33a15de413cf0604c (diff)
downloadlua-language-server-221b378fa69132808a5d396b777866338cbe65a0.zip
重载所有文件后跳过dead value的检测
Diffstat (limited to 'server/src/task.lua')
-rw-r--r--server/src/task.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/task.lua b/server/src/task.lua
index 88db7a28..bb1a7922 100644
--- a/server/src/task.lua
+++ b/server/src/task.lua
@@ -7,6 +7,7 @@ function mt:remove()
return
end
self._removed = true
+ coroutine.close(self.task)
end
function mt:isRemoved()