diff options
| author | Mirek Długosz <miniopl+github@gmail.com> | 2025-07-28 17:27:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-28 17:27:36 +0200 |
| commit | a1fbecc0fd76300e8fe84879fb1531f35cf7b018 (patch) | |
| tree | 08c805387eae12fc2a77b7a3c8e56860c672f43b | |
| parent | chore(main): release 2.0.1 (#1921) (diff) | |
| download | mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.tar mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.tar.gz mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.tar.bz2 mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.tar.lz mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.tar.xz mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.tar.zst mason-a1fbecc0fd76300e8fe84879fb1531f35cf7b018.zip | |
fix(process): close check handles (#1995)
| -rw-r--r-- | lua/mason-core/installer/InstallHandle.lua | 1 | ||||
| -rw-r--r-- | lua/mason-core/process.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lua/mason-core/installer/InstallHandle.lua b/lua/mason-core/installer/InstallHandle.lua index 22c654a3..d8b8941f 100644 --- a/lua/mason-core/installer/InstallHandle.lua +++ b/lua/mason-core/installer/InstallHandle.lua @@ -173,6 +173,7 @@ function InstallHandle:terminate() end end check:stop() + check:close() if not self:is_closed() then self:close() end diff --git a/lua/mason-core/process.lua b/lua/mason-core/process.lua index 882a8d41..251c149d 100644 --- a/lua/mason-core/process.lua +++ b/lua/mason-core/process.lua @@ -215,6 +215,7 @@ function M.spawn(cmd, opts, callback) end end check:stop() + check:close() callback(successful, exit_code, signal) end) |
