From 12ddbc308a2e38bceba6bba043ff8cae69cc3bca Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Wed, 18 May 2022 12:29:16 -0600 Subject: [PATCH] Fixed multipart book hanging --- Source/AaxDecrypter/AaxDecrypter.csproj | 2 +- Source/FileLiberator/DownloadDecryptBook.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/AaxDecrypter/AaxDecrypter.csproj b/Source/AaxDecrypter/AaxDecrypter.csproj index ee73efcd..0e9ee5eb 100644 --- a/Source/AaxDecrypter/AaxDecrypter.csproj +++ b/Source/AaxDecrypter/AaxDecrypter.csproj @@ -5,7 +5,7 @@ - + diff --git a/Source/FileLiberator/DownloadDecryptBook.cs b/Source/FileLiberator/DownloadDecryptBook.cs index ef54d81d..895cda16 100644 --- a/Source/FileLiberator/DownloadDecryptBook.cs +++ b/Source/FileLiberator/DownloadDecryptBook.cs @@ -71,8 +71,9 @@ namespace FileLiberator new StatusHandler { "Decrypt failed" }; } - // moves new files from temp dir to final dest - var movedAudioFile = moveFilesToBooksDir(libraryBook, entries); + // moves new files from temp dir to final dest. + // This could take a few seconds i moving hundreds of files. + var movedAudioFile = await Task.Run(() => moveFilesToBooksDir(libraryBook, entries)); // decrypt failed if (!movedAudioFile)