Skip to content

Commit 472bcf4

Browse files
committed
fix(uploader): queue is not empty when everything is skipped
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
1 parent 093cc82 commit 472bcf4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/uploader/uploader.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ export class Uploader {
326326
reject(error)
327327
}
328328
} finally {
329+
// Upload queue is cleared when all the uploading jobs are done
330+
// Meta upload unlike real uploading does not create a job
331+
// Removing it manually here to make sure it is remove even when no uploading happened and there was nothing to finish
332+
this._uploadQueue.splice(this._uploadQueue.indexOf(upload), 1)
329333
this._notifyAll(upload)
330334
this.updateStats()
331335
}

0 commit comments

Comments
 (0)