[tor-commits] [tor-launcher/master] Suppress repeated bootstrap error alerts (fix another edge case).

brade at torproject.org brade at torproject.org
Thu Apr 18 14:54:08 UTC 2013


commit 7ccb90e3f3053e3e5296eda5d7a543b696e01c10
Author: Kathy Brade <brade at torproject.org>
Date:   Wed Apr 17 14:55:00 2013 -0400

    Suppress repeated bootstrap error alerts (fix another edge case).
---
 src/components/tl-process.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/components/tl-process.js b/src/components/tl-process.js
index 7781caf..6014125 100644
--- a/src/components/tl-process.js
+++ b/src/components/tl-process.js
@@ -374,12 +374,12 @@ TorProcessService.prototype =
         if ((aStatusObj.TAG != this.mLastTorWarningPhase) ||
             (aStatusObj.WARNING != this.mLastTorWarningText))
         {
+          this.mLastTorWarningPhase = aStatusObj.TAG;
+          this.mLastTorWarningText = aStatusObj.WARNING;
+
           var s = TorLauncherUtil.getFormattedLocalizedString(
                                "tor_bootstrap_failed", [aStatusObj.WARNING], 1);
           TorLauncherUtil.showAlert(null, s);
-
-          this.mLastTorWarningPhase = aStatusObj.TAG;
-          this.mLastTorWarningText = aStatusObj.WARNING;
         }
       }
     }





More information about the tor-commits mailing list