mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 08:47:13 +00:00
server/red_channel: no need for extra loop
This commit is contained in:
parent
90c93eb3c1
commit
444b322cab
@ -172,7 +172,7 @@ static void red_peer_handle_outgoing(RedsStreamContext *peer, OutgoingHandler *h
|
||||
}
|
||||
} else {
|
||||
handler->pos += n;
|
||||
if (!handler->vec_size && handler->pos == handler->size) { // finished writing data
|
||||
if (handler->pos == handler->size) { // finished writing data
|
||||
handler->on_msg_done(handler->opaque);
|
||||
handler->vec = handler->vec_buf;
|
||||
handler->pos = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user