Skip to content

Commit

Permalink
Stop reopen panel timers even if DownloadsPanel.showPanel() failed
Browse files Browse the repository at this point in the history
(#18)
  • Loading branch information
Infocatcher committed Dec 14, 2014
1 parent 7d81024 commit 9dc97c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion downloadsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,9 @@ var downloadsPanel = {
this._reopenPanelTimer = window.setTimeout(function() {
var stopTime = Date.now() + prefs.get("reopenPanel.delayFallback");
this._reopenPanelTimer = window.setInterval(function() {
window.DownloadsPanel.showPanel();
if(Date.now() > stopTime)
this.cancelReopenPanel(window);
window.DownloadsPanel.showPanel();
}.bind(this), 10);
}.bind(this), prefs.get("reopenPanel.delay"));
},
Expand Down

0 comments on commit 9dc97c7

Please sign in to comment.