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() {
|
||||
if (fileIndex >= files.length) {
|
||||
finishSending();
|
||||
return;
|
||||
}
|
||||
const currentFile = files[fileIndex];
|
||||
if (byteIndex < currentFile.size) {
|
||||
|
|
Loading…
Reference in a new issue