summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-03-29 15:16:45 +0100
committerHans de Goede <hdegoede@redhat.com>2013-03-29 15:16:45 +0100
commite107565749893ee719a9d11d85205be895b4f175 (patch)
treed2c20e11e643880efd50176da7f0bf2732958d59 /src
parent6c87f5aff12d418386f6d060883f61335216c4a2 (diff)
downloadvd_agent-e107565749893ee719a9d11d85205be895b4f175.tar.gz
vd_agent-e107565749893ee719a9d11d85205be895b4f175.tar.xz
vd_agent-e107565749893ee719a9d11d85205be895b4f175.zip
file-xfers: Don't warn if we cannot find a file-xfer
If we cancel a file-xfer from the agent side, it is normal that there still are some data packets belongen to this xfer in the pipe. So don't warn about it, instead make this a debug message. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/vdagentd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vdagentd.c b/src/vdagentd.c
index ee5ce5f..6f17336 100644
--- a/src/vdagentd.c
+++ b/src/vdagentd.c
@@ -285,7 +285,8 @@ static void do_client_file_xfer(struct vdagent_virtio_port *vport,
conn = g_hash_table_lookup(active_xfers, GUINT_TO_POINTER(id));
if (!conn) {
- cancel_file_xfer(vport, "Could not find file-xfer %u, cancelling", id);
+ if (debug)
+ syslog(LOG_DEBUG, "Could not find file-xfer %u (cancelled?)", id);
return;
}
udscs_write(conn, msg_type, 0, 0, data, message_header->size);