mirror of https://github.com/xemu-project/xemu.git
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
|
@ -723,6 +723,7 @@ static void vdagent_chr_accept_input(Chardev *chr)
|
||||||
|
|
||||||
static void vdagent_disconnect(VDAgentChardev *vd)
|
static void vdagent_disconnect(VDAgentChardev *vd)
|
||||||
{
|
{
|
||||||
|
buffer_reset(&vd->outbuf);
|
||||||
vdagent_reset_bufs(vd);
|
vdagent_reset_bufs(vd);
|
||||||
vd->caps = 0;
|
vd->caps = 0;
|
||||||
if (vd->mouse_hs) {
|
if (vd->mouse_hs) {
|
||||||
|
|
Loading…
Reference in New Issue