Compare commits
2 Commits
ffc8fb4026
...
ae318d2c62
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ae318d2c62 | ||
|
|
ada3b31ad1 |
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "multi-hoster-uploader",
|
"name": "multi-hoster-uploader",
|
||||||
"version": "2.3.0",
|
"version": "2.3.1",
|
||||||
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1315,7 +1315,7 @@ function getSelectedJobLinks() {
|
|||||||
async function startUpload() {
|
async function startUpload() {
|
||||||
if (uploading) return;
|
if (uploading) return;
|
||||||
// Wait for any running health check to finish (e.g. startup auto-check)
|
// Wait for any running health check to finish (e.g. startup auto-check)
|
||||||
while (healthCheckRunning) await new Promise(r => setTimeout(r, 100));
|
for (let _hcWait = 0; healthCheckRunning && _hcWait < 300; _hcWait++) await new Promise(r => setTimeout(r, 100)); // max 30s
|
||||||
uploading = true; // set immediately to prevent double-click race
|
uploading = true; // set immediately to prevent double-click race
|
||||||
updateQueueActionButtons();
|
updateQueueActionButtons();
|
||||||
|
|
||||||
@ -1386,7 +1386,7 @@ async function startUpload() {
|
|||||||
|
|
||||||
async function startSelectedUpload() {
|
async function startSelectedUpload() {
|
||||||
if (uploading) return;
|
if (uploading) return;
|
||||||
while (healthCheckRunning) await new Promise(r => setTimeout(r, 100));
|
for (let _hcWait = 0; healthCheckRunning && _hcWait < 300; _hcWait++) await new Promise(r => setTimeout(r, 100)); // max 30s
|
||||||
uploading = true; // set immediately to prevent double-click race
|
uploading = true; // set immediately to prevent double-click race
|
||||||
updateQueueActionButtons();
|
updateQueueActionButtons();
|
||||||
|
|
||||||
@ -1567,6 +1567,7 @@ function handleProgress(data) {
|
|||||||
function handleBatchDone(summary) {
|
function handleBatchDone(summary) {
|
||||||
uploading = false;
|
uploading = false;
|
||||||
applySummaryResults(summary);
|
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
|
// Reset aborted jobs back to queued so they can be restarted
|
||||||
for (const job of queueJobs) {
|
for (const job of queueJobs) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user