Merge branch 'S07' into test
This commit is contained in:
commit
6b29a22e1c
@ -606,7 +606,9 @@ public partial class TrackService : ApplicationService, ITrackService
|
||||
return tracks;
|
||||
//指数退避等待
|
||||
var delay = TimeSpan.FromMilliseconds(Math.Pow(2, curRetryCount) * 150); // 150ms, 300ms, 600ms, ...
|
||||
await Task.Delay(delay);
|
||||
// 可以执行下一次才延时,否则延时没意义
|
||||
if (curRetryCount + 1 < GlobalConst.MaxUpdateTrackRetryCount)
|
||||
await Task.Delay(delay);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user