mirror of https://gitee.com/openkylin/libvirt.git
virsh: Interrupt *event --loop on disconnect
The *event --loop commands would keep running even though a connection to libvirtd is lost. This doesn't make a lot of sense since clearly we won't get any new events from the closed connection. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
786d735d94
commit
b9cad8b707
|
@ -130,6 +130,7 @@ virshCatchDisconnect(virConnectPtr conn,
|
|||
virFreeError(error);
|
||||
}
|
||||
disconnected++;
|
||||
vshEventDone(ctl);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue