mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
further fix
This commit is contained in:
parent
486fb6912e
commit
38dd9e9c57
|
@ -350,9 +350,11 @@ export default class Files {
|
||||||
getNextChunk().then(async (nextChunk) => {
|
getNextChunk().then(async (nextChunk) => {
|
||||||
if (nextChunk == "__ERR") {this.destroy(new Error("file read error")); return}
|
if (nextChunk == "__ERR") {this.destroy(new Error("file read error")); return}
|
||||||
let response = this.push(nextChunk)
|
let response = this.push(nextChunk)
|
||||||
|
|
||||||
while (response) {
|
while (response) {
|
||||||
response = this.push(await getNextChunk())
|
let nextChunk = await getNextChunk()
|
||||||
|
response = this.push(nextChunk)
|
||||||
|
if (!nextChunk) return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue