Skip to content

Commit

Permalink
fix(dap): cleanup exit handler (#234)
Browse files Browse the repository at this point in the history
Fixed an issue where a zombie handler raising errors on multiple debug
runs in same neovim session.
  • Loading branch information
hozkok authored Apr 19, 2023
1 parent 3dbac1e commit e1bba89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neotest/client/strategies/dap/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ return function(spec)
end,
after = function()
dap.listeners.after.event_output[handler_id] = nil
dap.listeners.after.event_exited[handler_id] = nil
if adapter_after then
adapter_after()
end
Expand Down

0 comments on commit e1bba89

Please sign in to comment.