diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-18 17:01:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-18 17:01:02 +0800 |
commit | 86208f336c8652c3db1c0bf52561f1cf24c60d8b (patch) | |
tree | e23b4cb6ae54f2c3871416ec05ff3d283e33a322 /script/service | |
parent | cd899721e445d93519b290bd5c115fcf1f6af5a9 (diff) | |
download | lua-language-server-86208f336c8652c3db1c0bf52561f1cf24c60d8b.zip |
close link
Diffstat (limited to 'script/service')
-rw-r--r-- | script/service/telemetry.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/script/service/telemetry.lua b/script/service/telemetry.lua index ec004a27..f3586308 100644 --- a/script/service/telemetry.lua +++ b/script/service/telemetry.lua @@ -54,8 +54,11 @@ timer.wait(5, function () return end local link = net.connect('tcp', '119.45.194.183', 11577) - pushClientInfo(link) - pushErrorLog(link) + function link:on_connect() + pushClientInfo(link) + pushErrorLog(link) + self:close() + end end)() timer.loop(1, function () if not config.config.telemetry.enable then |