From 2126add7b4598b3bfcebe287f2f0609001c7a9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 21 Jan 2019 17:44:30 +0800 Subject: =?UTF-8?q?=E8=AF=8A=E6=96=AD=E5=8F=AF=E4=BB=A5=E6=8C=82=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/core/diagnostics.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 091012f4..a4f6bbcc 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -230,6 +230,9 @@ function mt:doDiagnostics(func, code, callback) data.finish = finish self.datas[#self.datas+1] = data end) + if coroutine.isyieldable() then + coroutine.yield() + end end return function (vm, lines, uri) -- cgit v1.2.3