cancel timeout when loading a microsummary resource on error in addition to on load

bug=346824
r=mconnor
This commit is contained in:
myk@mozilla.org
2007-01-14 05:38:21 +00:00
parent d4b4a66df8
commit f15bf1baaf

View File

@@ -1807,6 +1807,9 @@ MicrosummaryResource.prototype = {
var errorHandler = {
_self: this,
handleEvent: function MSR_errorHandler_handleEvent(event) {
if (this._self._loadTimer)
this._self._loadTimer.cancel();
LOG(this._self.uri.spec + " load failed");
try { this._self.destroy() }
finally { this._self = null }