This commit is contained in:
Ben Irvin 2022-11-24 11:18:02 +01:00
parent 48b81b747d
commit c0b321c64e

View File

@ -134,13 +134,7 @@ class LocalFileDestinationProvider implements IDestinationProvider {
if (pipeline && !pipeline.closed) {
await new Promise<void>((resolve, reject) => {
pipeline
.on('close', () => {
resolve();
})
.on('error', (e) => {
reject(e);
});
pipeline.on('close', resolve).on('error', resolve);
});
}
}