@samitouri / QOSami-HFS / commits / 6faa7882

fix: admin/plugins: error "cannot read repo"

Massimo Melina committed Dec 19, 2023 at 22:27 UTC 6faa7882080b3ffe1e1c6c3b2692d5116ff3118a
1 file changed +2 -1
src/misc.ts
+2 -1
@@ -121,7 +121,8 @@ export class AsapStream<T> extends Readable {
121 if (this.finished) return
122 this.finished = true
123 for (const p of this.promises)
124 - p.then(data => this.push(data), e => this.emit('error', e))
124 + p.then(x => x !== undefined && this.push(x),
125 + e => this.emit('error', e) )
126 Promise.allSettled(this.promises).then(() => this.push(null))
127 }
128 }