mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00: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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user