From 1a3ff586501cc6f8bd29f53664b399c1c976f269 Mon Sep 17 00:00:00 2001 From: sumneko Date: Sun, 5 May 2019 14:11:18 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=88=9D=E5=A7=8B=E6=89=93=E5=BC=80?= =?UTF-8?q?=E7=9A=84=E6=96=87=E4=BB=B6=E6=B2=A1=E6=9C=89=E7=AC=A6=E5=8F=B7?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E4=BD=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/service.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'server/src/service.lua') diff --git a/server/src/service.lua b/server/src/service.lua index 42178c99..74124ba6 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -280,6 +280,12 @@ function mt:reCompile() obj:kill() end end + for _, obj in pairs(self._file) do + if obj.vm then + obj.vm:remove() + obj.vm = nil + end + end self.global = core.global(self) self.chain = chainMgr() -- cgit v1.2.3