]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Don't reconnect after the command when disconnected
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 1 Dec 2014 10:46:14 +0000 (11:46 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 8 Dec 2014 12:03:49 +0000 (13:03 +0100)
commit48abdf5de7dbb81d4091235efc57cf07fd45cb86
tree991b291d790af6e2a75e1b4c15f9a4f223f74725
parent8ef4f598f1a436c3548a2e545feab746b1761fe6
virsh: Don't reconnect after the command when disconnected

Each command that needs a connection causes a new connection to be
made.  Reconnecting after a command failed is pointless, mainly when
there is no other command to run.  Removeing three lines of code takes
care of that and keeps virsh working as it should.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh.c