diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-06-30 16:03:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-30 16:03:58 +0200 |
commit | 10a533e9d41ad8917c17e96cf696fcea4b07374f (patch) | |
tree | 69bcc294d1a956856578e9dfb6d87271b6057729 /src/nvim/msgpack_rpc/channel.c | |
parent | 3b504e7c8d20bb41ef6b6f95e46527766438046a (diff) | |
parent | 99f24dfbed84cea24fc1d8bb80ab10a2dd3eca0b (diff) | |
download | rneovim-10a533e9d41ad8917c17e96cf696fcea4b07374f.tar.gz rneovim-10a533e9d41ad8917c17e96cf696fcea4b07374f.tar.bz2 rneovim-10a533e9d41ad8917c17e96cf696fcea4b07374f.zip |
Merge pull request #10316 from bfredl/cb_safety
luv callbacks: throw error on deferred methods instead of crashing
Diffstat (limited to 'src/nvim/msgpack_rpc/channel.c')
-rw-r--r-- | src/nvim/msgpack_rpc/channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/msgpack_rpc/channel.c b/src/nvim/msgpack_rpc/channel.c index c1ad3bd829..81c9f1e3f4 100644 --- a/src/nvim/msgpack_rpc/channel.c +++ b/src/nvim/msgpack_rpc/channel.c @@ -344,7 +344,7 @@ static void handle_request(Channel *channel, msgpack_object *request) evdata->args = args; evdata->request_id = request_id; channel_incref(channel); - if (handler.async) { + if (handler.fast) { bool is_get_mode = handler.fn == handle_nvim_get_mode; if (is_get_mode && !input_blocking()) { |