[Spice-commits] server/red-channel-client.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Apr 16 15:39:21 UTC 2018
server/red-channel-client.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 3ad15fb5caeee2d3dc5254eb8aef234f32d06032
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Mon Apr 16 17:09:02 2018 +0200
Slight simplification of red_channel_client_push() logic
Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index f154c5c6..d46c299c 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -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);
More information about the Spice-commits
mailing list