summaryrefslogtreecommitdiff
path: root/server/src/service.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/service.lua')
-rw-r--r--server/src/service.lua9
1 files changed, 5 insertions, 4 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 0ec563e8..2026bfa9 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -484,10 +484,11 @@ function mt:_createCompileTask()
local uri = self._needCompile[1]
if uri then
self:compileVM(uri)
- end
- uri = next(self._needDiagnostics)
- if uri then
- self:doDiagnostics(uri)
+ else
+ uri = next(self._needDiagnostics)
+ if uri then
+ self:doDiagnostics(uri)
+ end
end
end)
end