You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-17 01:32:29 +02:00
improving progress fetching
This commit is contained in:
@ -69,10 +69,10 @@ export class ScheduledTasksService {
|
|||||||
repeatTime = 10000;
|
repeatTime = 10000;
|
||||||
}
|
}
|
||||||
this.timer = window.setTimeout(async () => {
|
this.timer = window.setTimeout(async () => {
|
||||||
await this.getProgress();
|
|
||||||
this.timer = null;
|
this.timer = null;
|
||||||
this.getProgressPeriodically();
|
this.getProgressPeriodically();
|
||||||
}, repeatTime);
|
}, repeatTime);
|
||||||
|
this.getProgress().catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
private incSubscribers() {
|
private incSubscribers() {
|
||||||
|
Reference in New Issue
Block a user