Skip to content

Commit

Permalink
fix: IPC:is_closing should return true if the pipe does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Dec 27, 2024
1 parent 34bfe12 commit 29170fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cord/core/uv/pipe.lua
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,6 @@ function IPC:close()
if self.on_close then self.on_close() end
end

function IPC:is_closing() return self.pipe and self.pipe:is_closing() end
function IPC:is_closing() return not self.pipe or self.pipe:is_closing() end

return IPC

0 comments on commit 29170fd

Please sign in to comment.