summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-06-14 20:55:05 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-06-14 20:55:05 +0800
commit1ed09df805c4f068bab668b464fd29e229a2ed60 (patch)
tree414e13fd7fe2bf8eeed641f0ff80f88b5c258eae /server/src
parentfe66e2ef017c3cd46856605dd39cb9b4266fabbb (diff)
downloadlua-language-server-1ed09df805c4f068bab668b464fd29e229a2ed60.zip
#45 通知exit时主动退出
Diffstat (limited to 'server/src')
-rw-r--r--server/src/method/exit.lua3
-rw-r--r--server/src/method/shutdown.lua1
2 files changed, 3 insertions, 1 deletions
diff --git a/server/src/method/exit.lua b/server/src/method/exit.lua
index 716a86e7..fa550243 100644
--- a/server/src/method/exit.lua
+++ b/server/src/method/exit.lua
@@ -1,3 +1,4 @@
return function ()
- return true
+ log.info('Server exited.')
+ os.exit(true)
end
diff --git a/server/src/method/shutdown.lua b/server/src/method/shutdown.lua
index 716a86e7..bb81306e 100644
--- a/server/src/method/shutdown.lua
+++ b/server/src/method/shutdown.lua
@@ -1,3 +1,4 @@
return function ()
+ log.info('Server shutdown.')
return true
end