[Spice-devel] [PATCH 09/10] server/red_channel: no need for extra loop

Alon Levy alevy at redhat.com
Wed Jan 12 21:01:42 PST 2011


---
 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;
-- 
1.7.3.4



More information about the Spice-devel mailing list