Another download fix
This commit is contained in:
parent
9b4aca64e3
commit
2f8bca3dfb
4 changed files with 8 additions and 45 deletions
|
@ -291,9 +291,12 @@ class Download {
|
|||
if (skip) return;
|
||||
if (this.downloaded != this.size) return;
|
||||
|
||||
outFile.close(() => {
|
||||
this._finished(tmp);
|
||||
outFile.on('finish', () => {
|
||||
outFile.close(() => {
|
||||
this._finished(tmp);
|
||||
});
|
||||
});
|
||||
outFile.end();
|
||||
});
|
||||
//Progress
|
||||
r.on('data', (c) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue