mirror of
https://github.com/bitwarden/server.git
synced 2025-07-14 06:07:36 -05:00
Replace Thread.Sleep
with Task.Delay
(#6006)
This commit is contained in:
@ -109,7 +109,7 @@ public abstract class BaseJobsHostedService : IHostedService, IDisposable
|
||||
|
||||
_logger.LogWarning($"Exception while trying to schedule job: {job.FullName}, {e}");
|
||||
var random = new Random();
|
||||
Thread.Sleep(random.Next(50, 250));
|
||||
await Task.Delay(random.Next(50, 250));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user