mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 12:05:17 +00: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:
parent
786d735d94
commit
b9cad8b707
@ -130,6 +130,7 @@ virshCatchDisconnect(virConnectPtr conn,
|
||||
virFreeError(error);
|
||||
}
|
||||
disconnected++;
|
||||
vshEventDone(ctl);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user