Fix file sync error with Hola extension enabled
With Hola enabled, uploads were failing with NS_BASE_STREAM CLOSED -- it seems to do something that causes the stream to be read more than once. Adding REOPEN_ON_REWIND fixes this.
This commit is contained in:
parent
9017aa69db
commit
7ac1ba5242
|
@ -413,7 +413,8 @@ Zotero.Sync.Storage.ZFS = (function () {
|
|||
|
||||
var fis = Components.classes["@mozilla.org/network/file-input-stream;1"]
|
||||
.createInstance(Components.interfaces.nsIFileInputStream);
|
||||
fis.init(file, 0x01, 0, Components.interfaces.nsIFileInputStream.CLOSE_ON_EOF);
|
||||
fis.init(file, 0x01, 0, Components.interfaces.nsIFileInputStream.CLOSE_ON_EOF
|
||||
| Components.interfaces.nsIFileInputStream.REOPEN_ON_REWIND);
|
||||
|
||||
var bis = Components.classes["@mozilla.org/network/buffered-input-stream;1"]
|
||||
.createInstance(Components.interfaces.nsIBufferedInputStream)
|
||||
|
|
Loading…
Reference in New Issue
Block a user