summaryrefslogtreecommitdiff
path: root/script/service
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-14 10:13:10 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-14 10:13:10 +0800
commit035f4393ab98b0de30650af94375d9c5e2fe07c1 (patch)
tree053c36dcf75ddbbfe48b221988e23774ac3bbd49 /script/service
parent585306c685fd7801103902da734da87dfbfc5f34 (diff)
downloadlua-language-server-035f4393ab98b0de30650af94375d9c5e2fe07c1.zip
close function
Diffstat (limited to 'script/service')
-rw-r--r--script/service/service.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/service/service.lua b/script/service/service.lua
index 11cc7b19..82c192b6 100644
--- a/script/service/service.lua
+++ b/script/service/service.lua
@@ -4,6 +4,7 @@ local await = require 'await'
local timer = require 'timer'
local proto = require 'proto'
local vm = require 'vm'
+local util = require 'utility'
local m = {}
m.type = 'service'
@@ -145,6 +146,7 @@ function m.startTimer()
end
function m.start()
+ util.enableCloseFunction()
await.setErrorHandle(log.error)
pub.recruitBraves(4)
proto.listen()