summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-04 12:01:48 +0200
committerAlon Levy <alevy@redhat.com>2011-01-15 20:54:48 +0200
commit444b322cabbf0a8cd7220f055133b3b5eaf3042e (patch)
treee0f676e9e1615d8f8597d1f55602dc948c0ad2b7 /server
parent90c93eb3c15c28238999c76dc051c0055e1cb3d8 (diff)
downloadspice-444b322cabbf0a8cd7220f055133b3b5eaf3042e.tar.gz
spice-444b322cabbf0a8cd7220f055133b3b5eaf3042e.tar.xz
spice-444b322cabbf0a8cd7220f055133b3b5eaf3042e.zip
server/red_channel: no need for extra loop
Diffstat (limited to 'server')
-rw-r--r--server/red_channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_channel.c b/server/red_channel.c
index b6c13d1e..40f3a1f1 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;