Skip to content

Commit fc880e8

Browse files
committed
Use async.run in event_stopped for error handler
1 parent e48c811 commit fc880e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/dap/session.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ end
647647

648648
---@param stopped dap.StoppedEvent
649649
function Session:event_stopped(stopped)
650-
coroutine.wrap(function()
650+
require("dap.async").run(function()
651651
local co = coroutine.running()
652652

653653
if self.dirty.threads or (stopped.threadId and self.threads[stopped.threadId] == nil) then
@@ -724,7 +724,7 @@ function Session:event_stopped(stopped)
724724
self:_show_exception_info(stopped.threadId, bufnr, current_frame)
725725
end
726726
end
727-
end)()
727+
end)
728728
end
729729

730730

0 commit comments

Comments
 (0)