mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Destroy streams handled by getReadyPipeline on error
This commit is contained in:
@@ -112,6 +112,11 @@ function getReadyPipeline(...streams) {
|
||||
}
|
||||
resolve(lastStream)
|
||||
}
|
||||
if (err) {
|
||||
for (const stream of streams) {
|
||||
stream.destroy()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pipeline(...streams).catch(handler)
|
||||
|
||||
Reference in New Issue
Block a user