cb104ef qemu: bulk stats: Fix logic in monitor handling

1 file Authored by Francesco Romani 9 years ago, Committed by Peter Krempa 9 years ago,
    qemu: bulk stats: Fix logic in monitor handling
    
    A logic bug in qemuConnectGetAllDomainStats makes the code mark the
    monitor as available when qemuDomainObjBeginJob fails, instead of when
    it succeeds, as the correct flow requires.
    
    This patch fixes the check and updates the code documentation
    accordingly.
    
    Broken by commit 57023c0a3af4af1c547189c1f6712ed5edeb0c0b.
    
    Signed-off-by: Francesco Romani <fromani@redhat.com>
    
        
file modified
+2 -2