mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 09:46:50 +00:00
worker: ignore subsequent start messages
If the worker is already started, don't assert and just return. This fixes calling spice_server_vm_start() multiple times. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Frediano Ziglio <freddy77@gmail.com>
This commit is contained in:
parent
95a0cfac8a
commit
76c59470ef
@ -536,7 +536,10 @@ static void handle_dev_start(void *opaque, void *payload)
|
||||
{
|
||||
RedWorker *worker = (RedWorker*) opaque;
|
||||
|
||||
spice_assert(!red_qxl_is_running(worker->qxl));
|
||||
if (red_qxl_is_running(worker->qxl)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (worker->cursor_channel) {
|
||||
worker->cursor_channel->set_during_target_migrate(FALSE);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user