diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-03-29 14:48:22 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-03-29 14:48:22 +0800 |
commit | 5f33254d4ec014ffc9358614b1894a0c7df08103 (patch) | |
tree | 8897c3337a143f38cce2038e8c66c7d8efa6408e /server | |
parent | 7b98f820b911a38ac35ded5d9ff9a4909db85d0d (diff) | |
download | lua-language-server-5f33254d4ec014ffc9358614b1894a0c7df08103.zip |
修正报错
Diffstat (limited to 'server')
-rw-r--r-- | server/src/rpc.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/rpc.lua b/server/src/rpc.lua index 99d96938..91b30bf5 100644 --- a/server/src/rpc.lua +++ b/server/src/rpc.lua @@ -75,7 +75,9 @@ local function recieve(self, proto) log.warn('Recieve: ', table.dump(proto.error)) return end - data.callback(proto.result) + if data.callback then + data.callback(proto.result) + end end return { |