mirror of
https://github.com/neovim/neovim.git
synced 2025-10-14 13:56:05 +00:00
channel: Fix unpacker loop condition
This commit is contained in:
@@ -353,7 +353,8 @@ static void parse_msgpack(RStream *rstream, void *data, bool eof)
|
||||
msgpack_unpack_return result;
|
||||
|
||||
// Deserialize everything we can.
|
||||
while ((result = msgpack_unpacker_next(channel->unpacker, &unpacked))) {
|
||||
while ((result = msgpack_unpacker_next(channel->unpacker, &unpacked)) ==
|
||||
MSGPACK_UNPACK_SUCCESS) {
|
||||
if (kv_size(channel->call_stack) && is_rpc_response(&unpacked.data)) {
|
||||
if (is_valid_rpc_response(&unpacked.data, channel)) {
|
||||
call_stack_pop(&unpacked.data, channel);
|
||||
|
Reference in New Issue
Block a user