summaryrefslogtreecommitdiff
path: root/script/service/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/service/service.lua')
-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()