server/red_channel: no need for extra loop

This commit is contained in:
Alon Levy 2010-11-04 12:01:48 +02:00
parent 90c93eb3c1
commit 444b322cab

View File

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