Slight simplification of red_channel_client_push() logic

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Christophe Fergeau 2018-04-16 17:09:02 +02:00 committed by Frediano Ziglio
parent 050c1f55ab
commit 3ad15fb5ca

View File

@ -1303,11 +1303,11 @@ void red_channel_client_push(RedChannelClient *rcc)
{
RedPipeItem *pipe_item;
if (!rcc->priv->during_send) {
rcc->priv->during_send = TRUE;
} else {
if (rcc->priv->during_send) {
return;
}
rcc->priv->during_send = TRUE;
g_object_ref(rcc);
if (red_channel_client_is_blocked(rcc)) {
red_channel_client_send(rcc);