Marc-André Lureau 83f7180227 spice: avoid spice runtime assert
The Spice server doesn't like to be started or stopped twice . It
aborts with:

(process:6191): Spice-ERROR **: 19:29:35.912: red-worker.c:623:handle_dev_start: assertion `!worker->running' failed

It's easy to avoid that situation since qemu spice_display_is_running
tracks the server state.

After the commit "spice: do not stop spice if VM is paused", it will
be possible to pause and resume the VM, and this will call
qemu_spice_display_start() twice. The easiest is to add a check for
spice_display_is_running with this patch to avoid the assert.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Victor Toso <victortoso@redhat.com>
Message-id: 20190221110703.5775-4-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2019-02-21 14:09:17 +01:00
..
2017-10-17 10:25:42 +02:00
2017-11-10 14:27:29 +01:00
2017-07-27 14:23:09 +02:00
2019-02-05 10:45:44 +01:00
2019-02-21 11:45:19 +01:00
2019-01-14 11:04:35 +00:00
2019-02-05 10:45:44 +01:00
2019-02-05 10:45:44 +01:00
2018-10-12 14:46:24 +02:00
2019-02-05 10:45:44 +01:00
2017-10-17 10:25:42 +02:00
2019-02-21 14:09:17 +01:00
2018-03-13 11:17:29 -06:00
2017-07-27 14:23:09 +02:00
2016-02-04 17:01:04 +00:00
2016-02-04 17:01:04 +00:00
2019-02-05 16:50:18 +01:00
2019-02-05 10:45:44 +01:00