second attempt at fixing files left open
This commit is contained in:
parent
23eb381ea0
commit
1ac712db12
1 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@
|
|||
(at your option) any later version.
|
||||
|
||||
Zotero is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty ofc
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
|
@ -289,13 +289,13 @@ Zotero.Translate.IO.Read.prototype = {
|
|||
},
|
||||
|
||||
"_openRawStream":function() {
|
||||
if(this._rawStream) this._rawStream.close();
|
||||
this._rawStream = Components.classes["@mozilla.org/network/file-input-stream;1"]
|
||||
.createInstance(Components.interfaces.nsIFileInputStream);
|
||||
this._rawStream.init(this.file, 0x01, 0664, 0);
|
||||
},
|
||||
|
||||
"_seekToStart":function(charset) {
|
||||
if(this._rawStream) this._rawStream.close();
|
||||
this._openRawStream();
|
||||
|
||||
this._linesExhausted = false;
|
||||
|
|
Loading…
Reference in a new issue