diff --git a/src/wwwroot/index.js b/src/wwwroot/index.js index da12b4b..17638a7 100644 --- a/src/wwwroot/index.js +++ b/src/wwwroot/index.js @@ -120,7 +120,7 @@ document.addEventListener("DOMContentLoaded", () => { let failedChunksCount = 0; async function worker() { - while (pendingIndices.length > 0 && !uploadFailed) { + while (pendingIndices.length > 0) { const index = pendingIndices.shift(); const start = index * CHUNK_SIZE; const end = Math.min(start + CHUNK_SIZE, file.size);