[Spice-devel] [RFC v4 60/62] server/red_worker: on_new_display_channel_client: push ack, cleanup

Alon Levy alevy at redhat.com
Tue Apr 26 03:55:25 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 35e60d6..d1039a2 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -9166,14 +9166,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 (surfaces->surfaces[0].context.canvas) {
         red_current_flush(worker, surfaces, 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.4.4



More information about the Spice-devel mailing list