mirror of
https://github.com/bitwarden/server.git
synced 2025-12-10 17:45:21 -06:00
Replace Thread.Sleep with Task.Delay (#6006)
This commit is contained in:
parent
f5be1ede2f
commit
3bfc24523e
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user