Fix TelemetryAnalyticsBackgroundService inf loop

This commit is contained in:
Фролов 2021-09-29 10:27:49 +05:00
parent 11604d8157
commit 093c1eafa3

View File

@ -52,6 +52,10 @@ namespace AsbCloudInfrastructure.Services
Console.WriteLine(ex.Message);
}
}
var ms = (int)(timeToStartAnalysis - DateTime.Now).TotalMilliseconds;
ms = ms > 100 ? ms : 100;
await Task.Delay(ms, token).ConfigureAwait(false);
}
}