Skip to content

Commit

Permalink
Merge pull request #2127 from bhcleek/fix-godebugstop-race
Browse files Browse the repository at this point in the history
expect race condition when waiting for debugger stop
  • Loading branch information
bhcleek authored Jan 14, 2019
2 parents 310bc00 + 32d15ad commit 53fb586
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion autoload/go/debug.vim
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ function! s:stop() abort

if has_key(s:state, 'job')
call go#job#Wait(s:state['job'])
call remove(s:state, 'job')

" while waiting, the s:complete may have already removed job from s:state.
if has_key(s:state, 'job')
call remove(s:state, 'job')
endif
endif

if has_key(s:state, 'ready')
Expand Down

0 comments on commit 53fb586

Please sign in to comment.