summaryrefslogtreecommitdiffstats
path: root/daemon/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/debug.c')
-rw-r--r--daemon/debug.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/daemon/debug.c b/daemon/debug.c
index cd3e8a5f..0ade2a41 100644
--- a/daemon/debug.c
+++ b/daemon/debug.c
@@ -549,10 +549,6 @@ do_debug_upload (const char *filename, int mode)
}
if (close (fd) == -1) {
- int err = errno;
- if (r == -1) /* if r == 0, file transfer ended already */
- cancel_receive ();
- errno = err;
reply_with_perror ("close: %s", filename);
return -1;
}