Compare commits

..

1 Commits

Author SHA1 Message Date
JustArchi
e8e393b320 Correct anti-captcha delay 2015-11-27 16:25:03 +01:00
3 changed files with 4 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ using System.Text;
using System.Threading.Tasks;
namespace ArchiSteamFarm {
internal class ArchiWebHandler {
internal sealed class ArchiWebHandler {
private const int Timeout = 1000 * WebBrowser.HttpTimeout; // In miliseconds
private readonly Bot Bot;

View File

@@ -32,7 +32,7 @@ using System.Threading.Tasks;
using System.Xml;
namespace ArchiSteamFarm {
internal class Bot {
internal sealed class Bot {
private const ushort CallbackSleep = 500; // In miliseconds
private static readonly ConcurrentDictionary<string, Bot> Bots = new ConcurrentDictionary<string, Bot>();
@@ -527,7 +527,7 @@ namespace ArchiSteamFarm {
case EResult.InvalidPassword:
Logging.LogGenericWarning(BotName, "Unable to login to Steam: " + result + ", will retry after a longer while");
await Stop().ConfigureAwait(false);
await Utilities.SleepAsync(1000 * 20 * Utilities.RandomDice()).ConfigureAwait(false); // TODO: Find out the required delay
await Utilities.SleepAsync(25 * 1000).ConfigureAwait(false); // Steam removes requirement of captcha after around 20 minutes
await Start().ConfigureAwait(false);
break;
case EResult.OK:

View File

@@ -31,7 +31,7 @@ using System.Threading;
using System.Threading.Tasks;
namespace ArchiSteamFarm {
internal class CardsFarmer {
internal sealed class CardsFarmer {
private const byte StatusCheckSleep = 5; // In minutes, how long to wait before checking the appID again
private const ushort MaxFarmingTime = 600; // In minutes, how long ASF is allowed to farm one game in solo mode