[libhttpseverywhere: 1/21] updater: do not cause init to run



commit 7346db684d6c37df1cc2535a59a303b122e2bc61
Author: grindhold <grindhold gmx net>
Date:   Mon Oct 24 22:41:17 2016 +0200

    updater: do not cause init to run

 src/update.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/update.vala b/src/update.vala
index d137159..12d6713 100644
--- a/src/update.vala
+++ b/src/update.vala
@@ -212,14 +212,13 @@ namespace HTTPSEverywhere {
         /**
          * This function initializes an update of the used rulefiles
          *
-         * If the update succeeded, it will reload the rulesets.
+         * Remember to update the rulesets afterwards via {@link Context.init}
          * It will return true on success and false on failure
          */
         public async void update(Cancellable? cancellable = null) throws UpdateError, IOError {
             lock_update();
             try {
                 yield execute_update(cancellable);
-                yield context.init(cancellable);
                 unlock_update();
             } catch (UpdateError e) {
                 unlock_update();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]