Compare commits

..

No commits in common. "102dbb7da3d58d8b11745f59ae561bb3c6aaea97" and "9d6e1ad795b81f45d93fbc0dde8cc15b6285f4b1" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View File

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

View File

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