Compare commits

...

2 Commits

Author SHA1 Message Date
Sucukdeluxe
102dbb7da3 Release v1.7.57 2026-03-08 21:08:44 +01:00
Sucukdeluxe
066ef14806 Fix AllDebrid start reservation pacing 2026-03-08 21:08:13 +01:00
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "real-debrid-downloader", "name": "real-debrid-downloader",
"version": "1.7.56", "version": "1.7.57",
"description": "Desktop downloader", "description": "Desktop downloader",
"main": "build/main/main/main.js", "main": "build/main/main/main.js",
"author": "Sucukdeluxe", "author": "Sucukdeluxe",

View File

@ -5561,13 +5561,14 @@ export class DownloadManager extends EventEmitter {
return; return;
} }
const activeCount = this.getProviderActiveTaskCount("alldebrid"); if (this.getProviderActiveTaskCount("alldebrid") <= 0) {
if (activeCount <= 0) {
this.providerStartReservations.delete(paceKey); this.providerStartReservations.delete(paceKey);
return; return;
} }
this.providerStartReservations.set(paceKey, now + activeCount * ALLDEBRID_START_STAGGER_MS); const existingReservation = this.providerStartReservations.get(paceKey) || 0;
const baseReservation = Math.max(now, existingReservation);
this.providerStartReservations.set(paceKey, baseReservation + ALLDEBRID_START_STAGGER_MS);
} }
private getConfiguredAllDebridStartLimit(): number { private getConfiguredAllDebridStartLimit(): number {