[Spice-devel] [RFCv5 41/47] server/red_worker: on_new_display_channel_client: push ack, cleanup

Alon Levy alevy at redhat.com
Sun May 8 06:11:37 PDT 2011


small cleanup patch, only functional change is sending a set ack message.
---
 server/red_worker.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 9a7fca9..4a546ab 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9186,14 +9186,13 @@ static void on_new_display_channel_client(DisplayChannelClient *dcc)
         return;
     }
     red_channel_client_ack_zero_messages_window(&dcc->common.base);
+    red_channel_client_push_set_ack(&dcc->common.base);
     if (render->surfaces[0].context.canvas) {
         red_current_flush(render, 0);
         push_new_primary_surface(dcc);
         red_push_surface_image(dcc, 0);
-        if (red_channel_is_connected(&display_channel->common.base)) {
-            red_pipe_add_verb(rcc, SPICE_MSG_DISPLAY_MARK);
-            red_disply_start_streams(dcc);
-        }
+        red_pipe_add_verb(rcc, SPICE_MSG_DISPLAY_MARK);
+        red_disply_start_streams(dcc);
     }
 }
 
-- 
1.7.5.1



More information about the Spice-devel mailing list