From 4e587e04294ed3e343d1b9928a54f25f254cfe57 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Sun, 8 May 2022 19:58:48 -0600 Subject: [PATCH] Add try block --- LibationWinForms/grid/GridEntry.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/LibationWinForms/grid/GridEntry.cs b/LibationWinForms/grid/GridEntry.cs index 7a3ba2fc..04283952 100644 --- a/LibationWinForms/grid/GridEntry.cs +++ b/LibationWinForms/grid/GridEntry.cs @@ -83,9 +83,15 @@ namespace LibationWinForms { if (!DownloadInProgress) { - DownloadInProgress = true; - await BookLiberation.ProcessorAutomationController.BackupSingleBookAsync(LibraryBook); - DownloadInProgress = false; + try + { + DownloadInProgress = true; + await BookLiberation.ProcessorAutomationController.BackupSingleBookAsync(LibraryBook); + } + finally + { + DownloadInProgress = false; + } } }