[libhttpseverywhere: 3/21] updater: unlock update in finally block
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhttpseverywhere: 3/21] updater: unlock update in finally block
- Date: Tue, 22 Nov 2016 14:37:32 +0000 (UTC)
commit e4232e49528f6bc0ddb8a9156c7f034c91b9ba39
Author: grindhold <grindhold gmx net>
Date: Mon Oct 24 22:50:04 2016 +0200
updater: unlock update in finally block
src/update.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/update.vala b/src/update.vala
index 12d6713..2be56a6 100644
--- a/src/update.vala
+++ b/src/update.vala
@@ -219,10 +219,10 @@ namespace HTTPSEverywhere {
lock_update();
try {
yield execute_update(cancellable);
- unlock_update();
} catch (UpdateError e) {
- unlock_update();
throw e;
+ } finally {
+ unlock_update();
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]