mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
msgpack-rpc: Terminate server->client calls when the channel closes
This commit is contained in:
@@ -338,6 +338,8 @@ static void parse_msgpack(RStream *rstream, void *data, bool eof)
|
|||||||
|
|
||||||
if (eof) {
|
if (eof) {
|
||||||
close_channel(channel);
|
close_channel(channel);
|
||||||
|
call_set_error(channel, "Channel was closed by the client");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t count = rstream_pending(rstream);
|
size_t count = rstream_pending(rstream);
|
||||||
|
Reference in New Issue
Block a user