Blame SOURCES/0016-cleanup-active_xfers-when-the-client-disconnects.patch

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