Skip to content

Commit d2ed711

Browse files
committed
debug: do not reschedule log timer when stopping
1 parent 6122ce5 commit d2ed711

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

autoload/go/debug.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ function! s:logasync(timer) abort
7272
let l:name = '__GODEBUG_OUTPUT__'
7373
let l:log_winid = bufwinid(l:name)
7474
if l:log_winid == -1
75+
if !s:isReady() && !has_key(s:state, 'job')
76+
return
77+
endif
7578
let s:logtimer = timer_start(go#config#DebugLogDelay(), function('s:logasync', []))
7679
return
7780
endif

0 commit comments

Comments
 (0)