mirror of
https://github.com/bitwarden/server
synced 2025-12-06 00:03:34 +00: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}");
|
_logger.LogWarning($"Exception while trying to schedule job: {job.FullName}, {e}");
|
||||||
var random = new Random();
|
var random = new Random();
|
||||||
Thread.Sleep(random.Next(50, 250));
|
await Task.Delay(random.Next(50, 250));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user