Skip to content

Commit a1fbecc

Browse files
authored
fix(process): close check handles (#1995)
1 parent 197f635 commit a1fbecc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lua/mason-core/installer/InstallHandle.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ function InstallHandle:terminate()
173173
end
174174
end
175175
check:stop()
176+
check:close()
176177
if not self:is_closed() then
177178
self:close()
178179
end

lua/mason-core/process.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ function M.spawn(cmd, opts, callback)
215215
end
216216
end
217217
check:stop()
218+
check:close()
218219
callback(successful, exit_code, signal)
219220
end)
220221

0 commit comments

Comments
 (0)