mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
ui/vdagent: reset outbuf on disconnect
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210805135715.857938-11-marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5e0a24e868
commit
5fb2e8d99b
1 changed files with 1 additions and 0 deletions
|
@ -723,6 +723,7 @@ static void vdagent_chr_accept_input(Chardev *chr)
|
|||
|
||||
static void vdagent_disconnect(VDAgentChardev *vd)
|
||||
{
|
||||
buffer_reset(&vd->outbuf);
|
||||
vdagent_reset_bufs(vd);
|
||||
vd->caps = 0;
|
||||
if (vd->mouse_hs) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue