qemu: end the agent job in qemuDomainSetTimeAgent

This function grabs an agent job but ends a monitor job.
End the agent job instead.

https://bugzilla.redhat.com/show_bug.cgi?id=1792723

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reported-by: Dan Zheng <dzheng@redhat.com>
Fixes: e005c95f56
This commit is contained in:
Ján Tomko 2020-01-20 07:55:48 +01:00
parent 2feaa925bb
commit d61f95cf6a

View File

@ -20464,7 +20464,7 @@ qemuDomainSetTimeAgent(virQEMUDriverPtr driver,
qemuDomainObjExitAgent(vm, agent);
endjob:
qemuDomainObjEndJob(driver, vm);
qemuDomainObjEndAgentJob(vm);
return ret;
}