From d1c1df4e601b0a656f21f544838c7e82f992bdcd Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 23 Sep 2009 19:44:21 +0000 Subject: [PATCH] - client: revert [19110]: don't delete files that fail verification; they might be partly downloaded. svn path=/trunk/boinc/; revision=19147 --- checkin_notes | 7 +++++++ client/pers_file_xfer.cpp | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 7da329623c..76896713ec 100644 --- a/checkin_notes +++ b/checkin_notes @@ -8007,3 +8007,10 @@ David 23 Sept 2009 From Gabor Gombas _autosetup + +David 23 Sept 2009 + - client: revert [19110]: don't delete files that fail verification; + they might be partly downloaded. + + client/ + pers_file_xfer.cpp diff --git a/client/pers_file_xfer.cpp b/client/pers_file_xfer.cpp index a1e53336e7..9d5264e8fa 100644 --- a/client/pers_file_xfer.cpp +++ b/client/pers_file_xfer.cpp @@ -114,7 +114,9 @@ int PERS_FILE_XFER::create_xfer() { return 0; } else { - fip->delete_file(); + // Mark file as not present but don't delete it. + // It might partly downloaded. + // fip->status = FILE_NOT_PRESENT; } }