summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-12-09 16:00:15 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-12-16 10:12:20 +0100
commitb50f3e42b9438e033074222671c0502ecfeba82c (patch)
tree97ac141204ccd72fb1572fdd38f70fddfda983f9 /ui
parent7cc6a25fe94b430cb5a041bcb19d7d854b4e99a7 (diff)
downloadhqemu-b50f3e42b9438e033074222671c0502ecfeba82c.zip
hqemu-b50f3e42b9438e033074222671c0502ecfeba82c.tar.gz
spice: move spice_server_vm_{start,stop} calls into qemu_spice_display_*()
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>
Diffstat (limited to 'ui')
-rw-r--r--ui/spice-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/spice-core.c b/ui/spice-core.c
index 0c48156..4cce3b3 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -623,9 +623,7 @@ static void vm_change_state_handler(void *opaque, int running,
{
if (running) {
qemu_spice_display_start();
- spice_server_vm_start(spice_server);
} else {
- spice_server_vm_stop(spice_server);
qemu_spice_display_stop();
}
}
@@ -908,10 +906,12 @@ int qemu_spice_display_add_client(int csock, int skipauth, int tls)
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;
}
OpenPOWER on IntegriCloud