summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-30 11:09:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-30 11:09:43 +0800
commitdf3f1879b0a0a7debf488aa89b98cc969bbfe5af (patch)
tree4a7d8d1963d39e04637e5ed54cf40fbe8c099b9d /script/service
parentc2e114ddc035b096baed3931b1a8b6a08458f42e (diff)
downloadlua-language-server-df3f1879b0a0a7debf488aa89b98cc969bbfe5af.zip
some fix
Diffstat (limited to 'script/service')
-rw-r--r--script/service/telemetry.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua
index 52ad193b..c5f73a36 100644
--- a/script/service/telemetry.lua
+++ b/script/service/telemetry.lua
@@ -68,7 +68,7 @@ timer.wait(5, function ()
if not suc then
suc, link = pcall(net.connect, 'tcp', '119.45.194.183', 11577)
end
- if not suc then
+ if not suc or not link then
return
end
function link:on_connect()