diff options
-rw-r--r-- | server/src/service.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/src/service.lua b/server/src/service.lua index 9242a61d..a6ca2705 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -728,11 +728,12 @@ function mt:restartDueToMemoryLeak() end function mt:reScanFiles() + if not self.workspace then + return + end log.debug('reScanFiles') self:clearAllFiles() - if self.workspace then - self.workspace:scanFiles() - end + self.workspace:scanFiles() end function mt:onUpdateConfig(updated, other) |