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

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