[Spice-devel] [spice-server v2 4/5] Use red_channel_client_set_blocked() helper

Christophe Fergeau cfergeau at redhat.com
Fri Apr 28 11:32:31 UTC 2017


Now that red_channel_client_set_blocked() is no longer changing the
events we are watching for, we can call it from
red_channel_client_push().

Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 server/red-channel-client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 0d6077a5b..6f1098279 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -1289,7 +1289,7 @@ void red_channel_client_push(RedChannelClient *rcc)
     }
 
     if (!red_channel_client_no_item_being_sent(rcc) && !red_channel_client_is_blocked(rcc)) {
-        rcc->priv->send_data.blocked = TRUE;
+        red_channel_client_set_blocked(rcc);
         spice_printerr("ERROR: an item waiting to be sent and not blocked");
     }
 
-- 
2.12.2



More information about the Spice-devel mailing list