mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
Correct anti-captcha delay
This commit is contained in:
parent
84db370516
commit
e8e393b320
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue