summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2010-06-27 12:45:11 +0300
committerAlexander Larsson <alexl@redhat.com>2010-06-29 13:59:46 +0200
commit8d21bce435e227403e535879eda2a7ac3c161a56 (patch)
treeb87b809837f3793e7b5348a2523494a897b229a4
parent58c23b66860def72f6b5186d77b5e047964e40cb (diff)
remove unnecessary send of SPICE_MSG_DISPLAY_RESET
when SPICE_MSG_DISPLAY_RESET was sent, SPICE_MSG_DISPLAY_SURFACE_DESTROY had already been sent for all surfaces. It also caused a client crash since DisplayChannel::handle_reset assumes that screen exists.
-rw-r--r--server/red_worker.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index e458d4b..8598e7a 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -10979,9 +10979,6 @@ static inline void handle_dev_destroy_surfaces(RedWorker *worker)
if (worker->display_channel) {
red_pipe_add_type(&worker->display_channel->base, PIPE_ITEM_TYPE_INVAL_PALLET_CACHE);
red_pipe_add_verb(&worker->display_channel->base, SPICE_MSG_DISPLAY_STREAM_DESTROY_ALL);
- if (!worker->display_channel->base.migrate) {
- red_pipe_add_verb(&worker->display_channel->base, SPICE_MSG_DISPLAY_RESET);
- }
}
//to handle better