@xen-orchestra/backups 0.49.0 → 0.49.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -29,6 +29,10 @@ export function forkStreamUnpipe(source) {
|
|
|
29
29
|
if (source.forks === 0) {
|
|
30
30
|
debug('no more forks, destroying original stream')
|
|
31
31
|
source.destroy(new Error('no more consumers for this stream'))
|
|
32
|
+
} else {
|
|
33
|
+
// a combination of stream.unpipe, onReadable and onData may stall stream here
|
|
34
|
+
// force it to flow again since we're piping it
|
|
35
|
+
source.resume()
|
|
32
36
|
}
|
|
33
37
|
})
|
|
34
38
|
return fork
|