diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-28 09:50:07 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-28 09:50:07 +0800 |
commit | dc08a844e4158e6a048e10417ae1f9dd651dee01 (patch) | |
tree | 1355dfed8e232e54a13cbaa61183180273f9c368 /script/service | |
parent | dc8aef3237e3c45768f5a86532804bb443fe7d50 (diff) | |
download | lua-language-server-dc08a844e4158e6a048e10417ae1f9dd651dee01.zip |
dont send the failed of connect
Diffstat (limited to 'script/service')
-rw-r--r-- | script/service/telemetry.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua index f9b37507..52ad193b 100644 --- a/script/service/telemetry.lua +++ b/script/service/telemetry.lua @@ -64,9 +64,9 @@ timer.wait(5, function () if not config.config.telemetry.enable then return end - local suc, link = xpcall(net.connect, log.error, 'tcp', 'moe-loli.love', 11577) + local suc, link = pcall(net.connect, 'tcp', 'moe-loli.love', 11577) if not suc then - suc, link = xpcall(net.connect, log.error, 'tcp', '119.45.194.183', 11577) + suc, link = pcall(net.connect, 'tcp', '119.45.194.183', 11577) end if not suc then return |