fix early-return logic when finished sending data

main
xenofem 2022-04-27 13:03:35 -04:00
parent b0382ff649
commit f94450c1a2
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ function finishSending() {
function sendData() {
if (fileIndex >= files.length) {
finishSending();
return;
}
const currentFile = files[fileIndex];
if (byteIndex < currentFile.size) {