fix early-return logic when finished sending data
This commit is contained in:
parent
b0382ff649
commit
f94450c1a2
|
@ -27,6 +27,7 @@ function finishSending() {
|
||||||
function sendData() {
|
function sendData() {
|
||||||
if (fileIndex >= files.length) {
|
if (fileIndex >= files.length) {
|
||||||
finishSending();
|
finishSending();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
const currentFile = files[fileIndex];
|
const currentFile = files[fileIndex];
|
||||||
if (byteIndex < currentFile.size) {
|
if (byteIndex < currentFile.size) {
|
||||||
|
|
Loading…
Reference in a new issue