spice: set qxl->ssd.running=true before telling spice to start, RHBZ #733993
authorYonit Halperin <yhalperi@redhat.com>
Mon, 5 Sep 2011 14:39:50 +0000 (17:39 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Sep 2011 07:20:09 +0000 (09:20 +0200)
commit7e79cf4083efa399b43f30edf23434b137fcb197
tree2e28bc566cacf4df3027e3a58a291910eab9e43a
parent40010aea63bb7d507caf24c9ac74c13ece47eec2
spice: set qxl->ssd.running=true before telling spice to start, RHBZ #733993

If qxl->ssd.running=true is set after telling spice to start, the spice server
thread can call qxl_send_events while qxl->ssd.running is still false. This leads to
assert(d->ssd.running).

Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/spice-display.c