]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QMPClient.pm
tree wide cleanups
[qemu-server.git] / PVE / QMPClient.pm
index 9d41112b342f486ad13dbc7aca647f7335105393..ea4dc0ba0d08046d93f7ff934c400659d2d40b70 100644 (file)
@@ -17,12 +17,12 @@ use PVE::QemuServer::Helpers;
 # This implementation uses IO::Multiplex (libio-multiplex-perl) and
 # allows you to issue qmp and qga commands to different VMs in parallel.
 
-# Note: qemu can onyl handle 1 connection, so we close connections asap
+# Note: qemu can only handle 1 connection, so we close connections asap
 
 sub new {
     my ($class, $eventcb) = @_;
 
-    my $mux = new IO::Multiplex;
+    my $mux = IO::Multiplex->new();
 
     my $self = bless {
        mux => $mux,