aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-10-24 10:15:13 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-10-28 08:54:44 -0300
commit4d70fe89bfff783363165025f25a4a42f624f1f1 (patch)
tree929607c7f88ca3de314091687830f206a94b6c4f /src
parent3cacdae04443d4ad5cb5cfc2de112d4f6ea40385 (diff)
downloadrneovim-4d70fe89bfff783363165025f25a4a42f624f1f1.tar.gz
rneovim-4d70fe89bfff783363165025f25a4a42f624f1f1.tar.bz2
rneovim-4d70fe89bfff783363165025f25a4a42f624f1f1.zip
msgpack-rpc: Terminate server->client calls when the channel closes
Diffstat (limited to 'src')
-rw-r--r--src/nvim/msgpack_rpc/channel.c2
1 files changed, 2 insertions, 0 deletions
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);