[Spice-devel] [spice-server v2 5/5] Remove redundant code from red_channel_client_msg_sent()

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


red_channel_client_clear_sent_item() will clear send_data.blocked, so no
need to do it in red_channel_client_msg_sent() as well.

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

diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 6f1098279..7fc931784 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -634,9 +634,6 @@ static void red_channel_client_msg_sent(RedChannelClient *rcc)
     }
 
     red_channel_client_clear_sent_item(rcc);
-    if (red_channel_client_is_blocked(rcc)) {
-        rcc->priv->send_data.blocked = FALSE;
-    }
 
     if (red_channel_client_urgent_marshaller_is_active(rcc)) {
         red_channel_client_restore_main_sender(rcc);
-- 
2.12.2



More information about the Spice-devel mailing list