qemu: reset await_event in all error paths in qemuAgentCommand

A fixup to patch [1]. We need to reset await_event in all
error paths.

[1] 52532073d : qemu: remove redundant needReply argument of qemuAgentCommand

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Nikolay Shirokovskiy 2020-03-20 10:16:23 +03:00 committed by Michal Privoznik
parent aeb909bf9b
commit ab286fba92

View File

@ -1113,7 +1113,7 @@ qemuAgentCommand(qemuAgentPtr agent,
}
if (qemuAgentGuestSync(agent) < 0)
return -1;
goto cleanup;
if (!(cmdstr = virJSONValueToString(cmd, false)))
goto cleanup;