Don't error if we can't delete the timer

This commit is contained in:
Simon Kornblith 2012-02-28 10:49:49 -05:00
parent deea80c495
commit a19786116d

View file

@ -319,7 +319,9 @@ Zotero_TranslatorTester.prototype.fetchPageAndRunTest = function(test, testDoneC
var timer = Components.classes["@mozilla.org/timer;1"]. var timer = Components.classes["@mozilla.org/timer;1"].
createInstance(Components.interfaces.nsITimer); createInstance(Components.interfaces.nsITimer);
timer.initWithCallback({"notify":function() { timer.initWithCallback({"notify":function() {
Zotero.Browser.deleteHiddenBrowser(hiddenBrowser); try {
Zotero.Browser.deleteHiddenBrowser(hiddenBrowser);
} catch(e) {}
}}, TEST_RUN_TIMEOUT, Components.interfaces.nsITimer.TYPE_ONE_SHOT); }}, TEST_RUN_TIMEOUT, Components.interfaces.nsITimer.TYPE_ONE_SHOT);
var me = this; var me = this;