Add try block
This commit is contained in:
parent
9a619186fd
commit
4e587e0429
@ -82,12 +82,18 @@ namespace LibationWinForms
|
|||||||
public async Task DownloadBook()
|
public async Task DownloadBook()
|
||||||
{
|
{
|
||||||
if (!DownloadInProgress)
|
if (!DownloadInProgress)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
DownloadInProgress = true;
|
DownloadInProgress = true;
|
||||||
await BookLiberation.ProcessorAutomationController.BackupSingleBookAsync(LibraryBook);
|
await BookLiberation.ProcessorAutomationController.BackupSingleBookAsync(LibraryBook);
|
||||||
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
DownloadInProgress = false;
|
DownloadInProgress = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void UpdateLibraryBook(LibraryBook libraryBook)
|
public void UpdateLibraryBook(LibraryBook libraryBook)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user