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