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

commit 7ccb90e3f3053e3e5296eda5d7a543b696e01c10 Author: Kathy Brade <brade@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; } } }
participants (1)
-
brade@torproject.org