Add try block
This commit is contained in:
parent
9a619186fd
commit
4e587e0429
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user