]> git.proxmox.com Git - qemu-server.git/commit - PVE/QMPClient.pm
QMPClient: add destructor
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 30 Oct 2019 09:28:24 +0000 (10:28 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 30 Oct 2019 09:36:51 +0000 (10:36 +0100)
commit56afd466dddb31f85d03ec3885f5e4fa2ce52e5f
tree1ae995a613e68c18132ef872714fbf1837295e4a
parent73a4470a8f4f29b3d7a9b82c600385f7a2d89eb2
QMPClient: add destructor

Explicitly close leftover connections in the destructor,
otherwise the IO::Multiplex instance can be leaked causing
the qmp connection to never be closed.

This could occur for instance when cancelling vzdump with
ctrl+c with extremely unlucky timing...

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
PVE/QMPClient.pm