diff options
Diffstat (limited to 'script/service/telemetry.lua')
-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 |