diff options
-rw-r--r-- | server/red_channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index 529bd4e8..172dedd1 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -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); } |