From 5591464991aea7abd89330e7b1d29d73d6ca0537 Mon Sep 17 00:00:00 2001 From: Billie Cleek Date: Sat, 12 Jan 2019 10:07:12 -0800 Subject: [PATCH] debug: exit busy wait when dlv exits Fixes #2123 --- autoload/go/debug.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/go/debug.vim b/autoload/go/debug.vim index aeba4fdf79..67508dac0f 100644 --- a/autoload/go/debug.vim +++ b/autoload/go/debug.vim @@ -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:]