mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
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.
This commit is contained in:
parent
58c23b6686
commit
8d21bce435
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user