server/red_channel: workaround for fast client disconnect bug (TODO - real fix)

This commit is contained in:
Alon Levy 2011-04-10 20:02:50 +03:00
parent 6be2c77dd9
commit cd2c87da3e

View File

@ -581,6 +581,11 @@ void red_channel_client_push(RedChannelClient *rcc)
red_channel_client_send(rcc);
}
if (rcc->send_data.item && !rcc->send_data.blocked) {
rcc->send_data.blocked = TRUE;
red_printf("ERROR: an item waiting to be sent and not blocked");
}
while ((pipe_item = red_channel_client_pipe_item_get(rcc))) {
red_channel_client_send_item(rcc, pipe_item);
}