flyson
flyso****@users*****
2005年 10月 8日 (土) 02:26:27 JST
Index: bbs2chreader/components/nsBbs2chChannel.js diff -u bbs2chreader/components/nsBbs2chChannel.js:1.3 bbs2chreader/components/nsBbs2chChannel.js:1.4 --- bbs2chreader/components/nsBbs2chChannel.js:1.3 Fri Sep 9 20:48:27 2005 +++ bbs2chreader/components/nsBbs2chChannel.js Sat Oct 8 02:26:27 2005 @@ -40,7 +40,6 @@ } nsBbs2chChannel.prototype = { - QueryInterface: function(aIID){ if(aIID.equals(Components.interfaces.nsIBbs2chChannel)) return this; if(aIID.equals(Components.interfaces.nsIChannel)) return this; @@ -162,7 +161,13 @@ requestRespond: function(aData, aDataLength){ if(!this._cacheMode){ - this._cacheOutputStream.write(aData, aDataLength); + try{ + this._cacheOutputStream.write(aData, aDataLength); + }catch(ex){ + this._cacheOutputStream.close(); + this._cacheEntry.close(); + this._cacheMode = true; + } } this._stringStream.setData(aData, aDataLength);