mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 19:31:13 +00:00
qmp_read_available : correctly handle end of response
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
bcb7c9cff5
commit
ae287df075
@ -2691,7 +2691,7 @@ my $qmp_read_avail = sub {
|
||||
my $count;
|
||||
if ($count = $fh->sysread($buf, 8192)) {
|
||||
$res .= $buf;
|
||||
last;
|
||||
last if $buf =~ (m/}\r\n$/);
|
||||
} else {
|
||||
if (!defined($count)) {
|
||||
die "$!\n";
|
||||
|
Loading…
Reference in New Issue
Block a user