Skip to content

Commit 57e5705

Browse files
ilessiiviilessiivi
andauthored
Stop removeFile once the file has been found (#357)
Co-authored-by: ilessiivi <iless@me.com>
1 parent 9def932 commit 57e5705

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Flow.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,10 @@ export default class Flow extends Eventizer {
686686
this.files.splice(i, 1);
687687
file.abort();
688688
this.emit('file-removed', file);
689+
690+
if (!this.opts.allowDuplicateUploads) {
691+
break;
692+
}
689693
}
690694
}
691695
}

0 commit comments

Comments
 (0)