From b6a0f2e122d6821ce211ccd0f8c73bf95d0f7491 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 27 Mar 2019 15:03:17 +0800 Subject: =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=8C=81=E6=9C=89=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/diagnostics.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/src/core') diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 7ebe297a..241d70ba 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -245,7 +245,11 @@ function mt:doDiagnostics(func, code, callback) self.datas[#self.datas+1] = data end) if coroutine.isyieldable() then - coroutine.yield() + if self.vm:isRemoved() then + coroutine.yield('stop') + else + coroutine.yield() + end end end -- cgit v1.2.3