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:
Jiri Denemark 2015-12-17 23:23:16 +01:00
parent 786d735d94
commit b9cad8b707
1 changed files with 1 additions and 0 deletions

View File

@ -130,6 +130,7 @@ virshCatchDisconnect(virConnectPtr conn,
virFreeError(error);
}
disconnected++;
vshEventDone(ctl);
}
}