diff options
-rw-r--r-- | server/src/core/diagnostics.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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) |