summaryrefslogtreecommitdiff
path: root/script/async
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-07-21 18:47:27 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-07-21 18:47:27 +0800
commit7a9f26241cec312c0c7930bcc71ca4f70a31facc (patch)
tree7ad18ad3744d96fc29157538dbe9fc26241e3f6c /script/async
parent408991b4d15724906ec9dc8d62a9f1579effd384 (diff)
downloadlua-language-server-7a9f26241cec312c0c7930bcc71ca4f70a31facc.zip
将协议放到主线程解析
Diffstat (limited to 'script/async')
-rw-r--r--script/async/proto.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/script/async/proto.lua b/script/async/proto.lua
index f0b23dae..c8126c63 100644
--- a/script/async/proto.lua
+++ b/script/async/proto.lua
@@ -41,12 +41,7 @@ local function readProtoContent(head)
if not buf then
return nil
end
- local suc, res = pcall(json.decode, buf)
- if not suc then
- pushError('Proto error:', buf)
- return nil
- end
- return res
+ return buf
end
local function readProto()