mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-14 15:14:42 -05:00
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:
@@ -130,6 +130,7 @@ virshCatchDisconnect(virConnectPtr conn,
|
||||
virFreeError(error);
|
||||
}
|
||||
disconnected++;
|
||||
vshEventDone(ctl);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user