We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6215e24 commit 39e7a87Copy full SHA for 39e7a87
src/download/download-engine/download-file/download-engine-file.ts
@@ -409,9 +409,9 @@ export default class DownloadEngineFile extends EventEmitter<DownloadEngineFileE
409
}
410
this._closed = true;
411
this._activeProgram?.abort();
412
- await this.options.onCloseAsync?.();
413
await this.options.writeStream.close();
414
await this.options.fetchStream.close();
+ await this.options.onCloseAsync?.();
415
this.emit("closed");
416
417
0 commit comments