Message ID | 20190221110703.5775-4-marcandre.lureau@redhat.com |
---|---|
State | New |
Headers | show |
Series | spice: add -display spice-app, setup and launch a Spice client | expand |
diff --git a/ui/spice-core.c b/ui/spice-core.c index a40fb2c00d..94b31ce3ad 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -921,12 +921,20 @@ int qemu_spice_display_add_client(int csock, int skipauth, int tls) void qemu_spice_display_start(void) { + if (spice_display_is_running) { + return; + } + spice_display_is_running = true; spice_server_vm_start(spice_server); } void qemu_spice_display_stop(void) { + if (!spice_display_is_running) { + return; + } + spice_server_vm_stop(spice_server); spice_display_is_running = false; }