diff options
Diffstat (limited to 'daemon/upload.c')
-rw-r--r-- | daemon/upload.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/daemon/upload.c b/daemon/upload.c index f8d312ff..2c429694 100644 --- a/daemon/upload.c +++ b/daemon/upload.c @@ -94,8 +94,11 @@ upload (const char *filename, int flags, int64_t offset) return -1; } if (r == -2) { /* cancellation from library */ + /* This error is ignored by the library since it initiated the + * cancel. Nevertheless we must send an error reply here. + */ + reply_with_error ("file upload cancelled"); close (data.fd); - /* Do NOT send any error. */ return -1; } |