diff options
author | Uri Lublin <uril@redhat.com> | 2020-10-07 19:34:57 +0300 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2020-11-03 09:43:32 +0000 |
commit | e4bfd1b632b6c14e8411dbe3565115a78cd3d256 (patch) | |
tree | 7f1bcba62690f0442c29443d651e7b9fe7abdaf1 | |
parent | 812ca777469a377c84b9861d7d326bfc72563304 (diff) |
cleanup active_xfers when the client disconnects
Signed-off-by: Uri Lublin <uril@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | src/vdagentd/vdagentd.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |