Skip to content

Commit

Permalink
Correct anti-captcha delay
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Nov 27, 2015
1 parent 84db370 commit e8e393b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ArchiSteamFarm/ArchiWebHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ limitations under the License.
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;
Expand Down
4 changes: 2 additions & 2 deletions ArchiSteamFarm/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ limitations under the License.
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>();
Expand Down Expand Up @@ -527,7 +527,7 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) {
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:
Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/CardsFarmer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ limitations under the License.
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

Expand Down

0 comments on commit e8e393b

Please sign in to comment.