Skip to content

Commit 2a278c8

Browse files
committed
don't error when trying to close job, it's OK
1 parent 6647212 commit 2a278c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/plenary/job.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ function Job:_execute()
427427
self.stdin:write "\n"
428428
else
429429
self.stdin:write("\n", function()
430-
self.stdin:close()
430+
pcall(self.stdin.close, self.stdin)
431431
end)
432432
end
433433
end

0 commit comments

Comments
 (0)