improving progress fetching
This commit is contained in:
parent
b46cdc2e11
commit
b6b8a9e203
@ -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() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user