Skip to content

Commit

Permalink
5 seconds seems good for now
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Nov 4, 2015
1 parent 1fe60e7 commit 44b3a51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ArchiSteamFarm/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal static async Task Restart() {

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

Expand Down
4 changes: 0 additions & 4 deletions ArchiSteamFarm/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ internal static async Task SleepAsync(int miliseconds) {
await Task.Delay(miliseconds).ConfigureAwait(false);
}

internal static int GetRandomDelay() {
return Random.Next(5, 16);
}

internal static ulong OnlyNumbers(string inputString) {
if (string.IsNullOrEmpty(inputString)) {
return 0;
Expand Down

0 comments on commit 44b3a51

Please sign in to comment.