Skip to content

Commit 44b3a51

Browse files
committed
5 seconds seems good for now
1 parent 1fe60e7 commit 44b3a51

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

ArchiSteamFarm/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ internal static async Task Restart() {
9292

9393
internal static async Task LimitSteamRequestsAsync() {
9494
await SteamSemaphore.WaitAsync().ConfigureAwait(false);
95-
await Utilities.SleepAsync(Utilities.GetRandomDelay() * 1000).ConfigureAwait(false); // We must add some delay to not get caught by Steam anty-DoS
95+
await Utilities.SleepAsync(5 * 1000).ConfigureAwait(false); // We must add some delay to not get caught by Steam anty-DoS
9696
SteamSemaphore.Release();
9797
}
9898

ArchiSteamFarm/Utilities.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,6 @@ internal static async Task SleepAsync(int miliseconds) {
4141
await Task.Delay(miliseconds).ConfigureAwait(false);
4242
}
4343

44-
internal static int GetRandomDelay() {
45-
return Random.Next(5, 16);
46-
}
47-
4844
internal static ulong OnlyNumbers(string inputString) {
4945
if (string.IsNullOrEmpty(inputString)) {
5046
return 0;

0 commit comments

Comments
 (0)