Skip to content

Commit

Permalink
Merge pull request #338 from vim-denops/do-not-throw-error-on-server-…
Browse files Browse the repository at this point in the history
…close

🐛 Do NOT throw an error on `denops#server#close`
  • Loading branch information
lambdalisue authored May 5, 2024
2 parents 9f0f941 + dbab491 commit 2a39384
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions autoload/denops/server.vim
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ function! denops#server#stop() abort
endfunction

function! denops#server#restart() abort
if denops#_internal#server#proc#is_started()
call denops#server#stop()
endif
call denops#server#stop()
call denops#server#start()
endfunction

Expand All @@ -58,13 +56,14 @@ function! denops#server#connect() abort
endfunction

function! denops#server#close() abort
if !denops#_internal#server#chan#is_connected()
return
endif
call denops#_internal#server#chan#close()
endfunction

function! denops#server#reconnect() abort
if denops#_internal#server#chan#is_connected()
call denops#server#close()
endif
call denops#server#close()
call denops#server#connect()
endfunction

Expand Down

0 comments on commit 2a39384

Please sign in to comment.