Compare commits

..

No commits in common. "ae318d2c6253c56cba42b038830f850a676de790" and "ffc8fb40266e5ee1a4946cda6fd2dd6eae981acc" have entirely different histories.

2 changed files with 3 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "multi-hoster-uploader",
"version": "2.3.1",
"version": "2.3.0",
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
"main": "main.js",
"scripts": {

View File

@ -1315,7 +1315,7 @@ function getSelectedJobLinks() {
async function startUpload() {
if (uploading) return;
// Wait for any running health check to finish (e.g. startup auto-check)
for (let _hcWait = 0; healthCheckRunning && _hcWait < 300; _hcWait++) await new Promise(r => setTimeout(r, 100)); // max 30s
while (healthCheckRunning) await new Promise(r => setTimeout(r, 100));
uploading = true; // set immediately to prevent double-click race
updateQueueActionButtons();
@ -1386,7 +1386,7 @@ async function startUpload() {
async function startSelectedUpload() {
if (uploading) return;
for (let _hcWait = 0; healthCheckRunning && _hcWait < 300; _hcWait++) await new Promise(r => setTimeout(r, 100)); // max 30s
while (healthCheckRunning) await new Promise(r => setTimeout(r, 100));
uploading = true; // set immediately to prevent double-click race
updateQueueActionButtons();
@ -1567,7 +1567,6 @@ function handleProgress(data) {
function handleBatchDone(summary) {
uploading = false;
applySummaryResults(summary);
_deletedJobIds.clear(); // Free memory — stale IDs no longer needed after batch completes
// Reset aborted jobs back to queued so they can be restarted
for (const job of queueJobs) {