Add try block

This commit is contained in:
Michael Bucari-Tovo 2022-05-08 19:58:48 -06:00
parent 9a619186fd
commit 4e587e0429

View File

@ -83,9 +83,15 @@ namespace LibationWinForms
{ {
if (!DownloadInProgress) if (!DownloadInProgress)
{ {
DownloadInProgress = true; try
await BookLiberation.ProcessorAutomationController.BackupSingleBookAsync(LibraryBook); {
DownloadInProgress = false; DownloadInProgress = true;
await BookLiberation.ProcessorAutomationController.BackupSingleBookAsync(LibraryBook);
}
finally
{
DownloadInProgress = false;
}
} }
} }