[Spice-devel] [PATCH 09/10] server/red_channel: no need for extra loop
Hans de Goede
hdegoede at redhat.com
Wed Jan 12 23:52:58 PST 2011
Ack.
On 01/13/2011 06:01 AM, Alon Levy wrote:
> ---
> server/red_channel.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/server/red_channel.c b/server/red_channel.c
> index b6c13d1..40f3a1f 100644
> --- a/server/red_channel.c
> +++ b/server/red_channel.c
> @@ -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;
More information about the Spice-devel
mailing list