So calling spice server to start/stop the worker goes
hand in hand with the status variable update.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
{
if (running) {
qemu_spice_display_start();
- spice_server_vm_start(spice_server);
} else {
- spice_server_vm_stop(spice_server);
qemu_spice_display_stop();
}
}
void qemu_spice_display_start(void)
{
spice_display_is_running = true;
+ spice_server_vm_start(spice_server);
}
void qemu_spice_display_stop(void)
{
+ spice_server_vm_stop(spice_server);
spice_display_is_running = false;
}