5 seconds seems good for now

This commit is contained in:
JustArchi
2015-11-04 18:30:38 +01:00
parent 1fe60e7037
commit 44b3a518bd
2 changed files with 1 additions and 5 deletions

View File

@@ -92,7 +92,7 @@ namespace ArchiSteamFarm {
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();
}

View File

@@ -41,10 +41,6 @@ namespace ArchiSteamFarm {
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;