summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/service.lua4
1 files changed, 3 insertions, 1 deletions
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