1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

improving progress fetching

This commit is contained in:
Patrik J. Braun 2019-12-10 15:26:10 +01:00
parent b46cdc2e11
commit b6b8a9e203

View File

@ -69,10 +69,10 @@ export class ScheduledTasksService {
repeatTime = 10000;
}
this.timer = window.setTimeout(async () => {
await this.getProgress();
this.timer = null;
this.getProgressPeriodically();
}, repeatTime);
this.getProgress().catch(console.error);
}
private incSubscribers() {