@samitouri / QOSami-HFS / commits / 659817c6

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

Massimo Melina committed Dec 19, 2023 at 22:27 UTC 659817c6ad2908e483b109d25007a0df15a46a62
1 file changed +2 -1
src/misc.ts
+2 -1
@@ -131,7 +131,8 @@ export class AsapStream<T> extends Readable {
131 if (this.finished) return
132 this.finished = true
133 for (const p of this.promises)
134 - p.then(data => this.push(data), e => this.emit('error', e))
134 + p.then(x => x !== undefined && this.push(x),
135 + e => this.emit('error', e) )
136 Promise.allSettled(this.promises).then(() => this.push(null))
137 }
138 }