26 lines
838 B
Diff
26 lines
838 B
Diff
From e4bfd1b632b6c14e8411dbe3565115a78cd3d256 Mon Sep 17 00:00:00 2001
|
|
From: Uri Lublin <uril@redhat.com>
|
|
Date: Wed, 7 Oct 2020 19:34:57 +0300
|
|
Subject: [PATCH] cleanup active_xfers when the client disconnects
|
|
|
|
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
Acked-by: Frediano Ziglio <fziglio@redhat.com>
|
|
---
|
|
src/vdagentd/vdagentd.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/vdagentd/vdagentd.c b/src/vdagentd/vdagentd.c
|
|
index 92885b5..8437779 100644
|
|
--- a/src/vdagentd/vdagentd.c
|
|
+++ b/src/vdagentd/vdagentd.c
|
|
@@ -168,6 +168,7 @@ static void send_capabilities(VirtioPort *vport,
|
|
|
|
static void do_client_disconnect(void)
|
|
{
|
|
+ g_hash_table_remove_all(active_xfers);
|
|
if (client_connected) {
|
|
udscs_server_write_all(server, VDAGENTD_CLIENT_DISCONNECTED, 0, 0,
|
|
NULL, 0);
|
|
--
|
|
GitLab
|