Skip to content

Commit e8e393b

Browse files
committed
Correct anti-captcha delay
1 parent 84db370 commit e8e393b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ArchiSteamFarm/ArchiWebHandler.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ limitations under the License.
3333
using System.Threading.Tasks;
3434

3535
namespace ArchiSteamFarm {
36-
internal class ArchiWebHandler {
36+
internal sealed class ArchiWebHandler {
3737
private const int Timeout = 1000 * WebBrowser.HttpTimeout; // In miliseconds
3838

3939
private readonly Bot Bot;

ArchiSteamFarm/Bot.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ limitations under the License.
3232
using System.Xml;
3333

3434
namespace ArchiSteamFarm {
35-
internal class Bot {
35+
internal sealed class Bot {
3636
private const ushort CallbackSleep = 500; // In miliseconds
3737

3838
private static readonly ConcurrentDictionary<string, Bot> Bots = new ConcurrentDictionary<string, Bot>();
@@ -527,7 +527,7 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) {
527527
case EResult.InvalidPassword:
528528
Logging.LogGenericWarning(BotName, "Unable to login to Steam: " + result + ", will retry after a longer while");
529529
await Stop().ConfigureAwait(false);
530-
await Utilities.SleepAsync(1000 * 20 * Utilities.RandomDice()).ConfigureAwait(false); // TODO: Find out the required delay
530+
await Utilities.SleepAsync(25 * 1000).ConfigureAwait(false); // Steam removes requirement of captcha after around 20 minutes
531531
await Start().ConfigureAwait(false);
532532
break;
533533
case EResult.OK:

ArchiSteamFarm/CardsFarmer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ limitations under the License.
3131
using System.Threading.Tasks;
3232

3333
namespace ArchiSteamFarm {
34-
internal class CardsFarmer {
34+
internal sealed class CardsFarmer {
3535
private const byte StatusCheckSleep = 5; // In minutes, how long to wait before checking the appID again
3636
private const ushort MaxFarmingTime = 600; // In minutes, how long ASF is allowed to farm one game in solo mode
3737

0 commit comments

Comments
 (0)