]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Obtain job before checking if domain is live
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 13 Jun 2016 12:17:39 +0000 (14:17 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 14 Jun 2016 09:10:49 +0000 (11:10 +0200)
commita781eae8c1a9985b87082451f187ae284894d99a
tree35b345e6a4a9b6117a194a62befec21949b0e715
parent8264c70e0b5810f3541839f64219a2f4a8bf08d1
qemu: Obtain job before checking if domain is live

Since obtaining a job can wait for another job to finish, the state
might change in the meantime.  And checking it more than once is
pointless.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_driver.c