Skip to content

Commit

Permalink
debug: exit busy wait when dlv exits
Browse files Browse the repository at this point in the history
Fixes #2123
  • Loading branch information
bhcleek committed Jan 12, 2019
1 parent 0ab5221 commit 5591464
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/go/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ function! s:call_jsonrpc(method, ...) abort
call chansend(l:ch, l:req_json)
while len(s:state.data) == 0
sleep 50m
if get(s:state, 'ready', 0) == 0
return
endif
endwhile
let resp_json = s:state.data[0]
let s:state.data = s:state.data[1:]
Expand Down

0 comments on commit 5591464

Please sign in to comment.