Skip to content

Commit 184bf75

Browse files
committed
clear self.std* when closing
This ensures we don't write to an empty pipe.
1 parent f89f5d7 commit 184bf75

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/tabnine/binary.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ function TabnineBinary:start()
8989
}, function()
9090
self.handle, self.pid = nil, nil
9191
uv.read_stop(self.stdout)
92+
uv.read_stop(self.stderr)
93+
self.stdout, self.stderr, self.stdin = nil, nil, nil
9294
end)
9395

9496
uv.read_start(

0 commit comments

Comments
 (0)