mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
qmp: Call monitor_set_cur() only in qmp_dispatch()
The correct way to set the current monitor for a coroutine handler will be different than for a blocking handler, so monitor_set_cur() needs to be called in qmp_dispatch(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20201005155855.256490-7-kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
57d3635e42
commit
41725fa7ed
6 changed files with 20 additions and 13 deletions
|
@ -579,7 +579,7 @@ static void process_event(void *opaque, QObject *obj, Error *err)
|
|||
}
|
||||
|
||||
g_debug("processing command");
|
||||
rsp = qmp_dispatch(&ga_commands, obj, false);
|
||||
rsp = qmp_dispatch(&ga_commands, obj, false, NULL);
|
||||
|
||||
end:
|
||||
ret = send_response(s, rsp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue