From 574c02a41b7fb8acf60ffc158a285987bd0c1e28 Mon Sep 17 00:00:00 2001 From: sumneko Date: Thu, 4 Apr 2019 10:54:28 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/service.lua b/server/src/service.lua index 6db71442..1cb4b19e 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -659,7 +659,9 @@ function mt:onUpdateConfig(updated) end if not table.equal(oldConfig.workspace, newConfig.workspace) then self:clearAllFiles() - self.workspace:scanFiles() + if self.workspace then + self.workspace:scanFiles() + end end end -- cgit v1.2.3