From eab6f71a4cf52875fd03be8cdd1614c2d1e245e5 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sun, 8 May 2022 17:07:10 -0600 Subject: [PATCH] Don't delete temp aaxc file if download failed. --- FileLiberator/DownloadDecryptBook.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FileLiberator/DownloadDecryptBook.cs b/FileLiberator/DownloadDecryptBook.cs index 7bca70e2..b03334a0 100644 --- a/FileLiberator/DownloadDecryptBook.cs +++ b/FileLiberator/DownloadDecryptBook.cs @@ -62,7 +62,7 @@ namespace FileLiberator // decrypt failed if (!success) { - foreach (var tmpFile in entries) + foreach (var tmpFile in entries.Where(f => f.FileType != FileType.AAXC)) FileUtility.SaferDelete(tmpFile.Path); return new StatusHandler { "Decrypt failed" };