diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2010-06-27 12:45:11 +0300 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-06-29 13:59:46 +0200 |
commit | 8d21bce435e227403e535879eda2a7ac3c161a56 (patch) | |
tree | b87b809837f3793e7b5348a2523494a897b229a4 /server/red_worker.c | |
parent | 58c23b66860def72f6b5186d77b5e047964e40cb (diff) | |
download | spice-8d21bce435e227403e535879eda2a7ac3c161a56.tar.gz spice-8d21bce435e227403e535879eda2a7ac3c161a56.tar.xz spice-8d21bce435e227403e535879eda2a7ac3c161a56.zip |
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.
Diffstat (limited to 'server/red_worker.c')
-rw-r--r-- | server/red_worker.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index e458d4b1..8598e7a9 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 |