mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Destroy streams handled by getReadyPipeline on error
This commit is contained in:
parent
87b8f8e194
commit
5fadafaf96
1 changed files with 5 additions and 0 deletions
|
@ -112,6 +112,11 @@ function getReadyPipeline(...streams) {
|
|||
}
|
||||
resolve(lastStream)
|
||||
}
|
||||
if (err) {
|
||||
for (const stream of streams) {
|
||||
stream.destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pipeline(...streams).catch(handler)
|
||||
|
|
Loading…
Reference in a new issue