diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-12 23:08:10 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-05-12 23:08:10 +0900 |
| commit | 38552050269e6e74e080765aa4ba844f65e028fd (patch) | |
| tree | ca4aa10ac6279954776942c21d8da63979878f15 /src/ChecksumCheckIntegrityEntry.cc | |
| parent | 5100f96bfabac9af89801711f8e0c02c2ffdf28d (diff) | |
Exit with 32 status code if checksum verification failed
Diffstat (limited to 'src/ChecksumCheckIntegrityEntry.cc')
| -rw-r--r-- | src/ChecksumCheckIntegrityEntry.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ChecksumCheckIntegrityEntry.cc b/src/ChecksumCheckIntegrityEntry.cc index 12b5dfbe..f1c47e07 100644 --- a/src/ChecksumCheckIntegrityEntry.cc +++ b/src/ChecksumCheckIntegrityEntry.cc @@ -82,7 +82,11 @@ ChecksumCheckIntegrityEntry::onDownloadIncomplete make_unique<StreamFileAllocationEntry> (getRequestGroup(), popNextCommand()), e); + return; } + + // If we don't redownload, set error code to indicate checksum error + getRequestGroup()->setLastErrorCode(error_code::CHECKSUM_ERROR); } } // namespace aria2 |
