From 4d70fe89bfff783363165025f25a4a42f624f1f1 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 24 Oct 2014 10:15:13 -0300 Subject: msgpack-rpc: Terminate server->client calls when the channel closes --- src/nvim/msgpack_rpc/channel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nvim/msgpack_rpc/channel.c') diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index 1fe9d7aedb..43bed54b2c 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -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); -- cgit