Don't delete temp aaxc file if download failed.

This commit is contained in:
Michael Bucari-Tovo 2022-05-08 17:07:10 -06:00
parent f68bf2d6b3
commit eab6f71a4c

View File

@ -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" };