mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
vnc: auto assian an id when calling change vnc qmp interface
Only in this way, change vnc qmp interface can take effect, because qemu_opts_find(&qemu_vnc_opts, id) will return NULL in vnc_display_open(), It can't connect successfully vnc server forever. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2779672fa3
commit
f7801c5ce4
1 changed files with 5 additions and 0 deletions
5
qmp.c
5
qmp.c
|
@ -387,6 +387,11 @@ static void qmp_change_vnc_listen(const char *target, Error **errp)
|
|||
qemu_opts_del(opts);
|
||||
}
|
||||
opts = vnc_parse_func(target);
|
||||
if (!opts) {
|
||||
return;
|
||||
}
|
||||
|
||||
vnc_auto_assign_id(olist, opts);
|
||||
vnc_display_open("default", errp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue