summaryrefslogtreecommitdiff
path: root/script/proto
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-23 01:46:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-23 01:46:32 +0800
commit68e39a2cb1511e4307603a0913950a2b1dde1f08 (patch)
tree0c710098dfb443bc603902c0b788b316f158de33 /script/proto
parenta43d4d492265d07b12201699c7a1c41a2dc90b34 (diff)
downloadlua-language-server-68e39a2cb1511e4307603a0913950a2b1dde1f08.zip
should resume nil
Diffstat (limited to 'script/proto')
-rw-r--r--script/proto/proto.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/proto/proto.lua b/script/proto/proto.lua
index bc3f41f4..5cc61b24 100644
--- a/script/proto/proto.lua
+++ b/script/proto/proto.lua
@@ -131,6 +131,7 @@ function m.doResponse(proto)
m.waiting[id] = nil
if proto.error then
log.warn(('Response error [%d]: %s'):format(proto.error.code, proto.error.message))
+ resume(nil)
return
end
resume(proto.result)