ci: typing
This commit is contained in:
parent
efa0b1fe73
commit
674c13a0fd
1 changed files with 5 additions and 2 deletions
|
|
@ -412,11 +412,14 @@ end
|
||||||
---@param bufnr integer
|
---@param bufnr integer
|
||||||
function M.stop(bufnr)
|
function M.stop(bufnr)
|
||||||
local s = state[bufnr]
|
local s = state[bufnr]
|
||||||
if not s or not s.process then
|
if not s then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local obj = s.process
|
||||||
|
if not obj then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
log.dbg('stopping process for buffer %d', bufnr)
|
log.dbg('stopping process for buffer %d', bufnr)
|
||||||
local obj = s.process
|
|
||||||
obj:kill('sigterm')
|
obj:kill('sigterm')
|
||||||
|
|
||||||
local timer = vim.uv.new_timer()
|
local timer = vim.uv.new_timer()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue