Compare commits
2 Commits
9d6e1ad795
...
102dbb7da3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
102dbb7da3 | ||
|
|
066ef14806 |
@ -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",
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user