mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
channel: Fix unpacker loop condition
This commit is contained in:
parent
ddecfb763b
commit
0669c5c0b1
@ -353,7 +353,8 @@ static void parse_msgpack(RStream *rstream, void *data, bool eof)
|
|||||||
msgpack_unpack_return result;
|
msgpack_unpack_return result;
|
||||||
|
|
||||||
// Deserialize everything we can.
|
// 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 (kv_size(channel->call_stack) && is_rpc_response(&unpacked.data)) {
|
||||||
if (is_valid_rpc_response(&unpacked.data, channel)) {
|
if (is_valid_rpc_response(&unpacked.data, channel)) {
|
||||||
call_stack_pop(&unpacked.data, channel);
|
call_stack_pop(&unpacked.data, channel);
|
||||||
|
Loading…
Reference in New Issue
Block a user