summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/service.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/service.lua b/server/src/service.lua
index 214e3f41..4b9d4319 100644
--- a/server/src/service.lua
+++ b/server/src/service.lua
@@ -224,6 +224,9 @@ function mt:loadVM(uri)
if not obj then
return nil
end
+ if uri ~= self._lastLoadedVM then
+ self:needCompile(uri)
+ end
self:compileVM(uri)
if obj.vm then
self._lastLoadedVM = uri