File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ limitations under the License.
33
33
using System . Threading . Tasks ;
34
34
35
35
namespace ArchiSteamFarm {
36
- internal class ArchiWebHandler {
36
+ internal sealed class ArchiWebHandler {
37
37
private const int Timeout = 1000 * WebBrowser . HttpTimeout ; // In miliseconds
38
38
39
39
private readonly Bot Bot ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ limitations under the License.
32
32
using System . Xml ;
33
33
34
34
namespace ArchiSteamFarm {
35
- internal class Bot {
35
+ internal sealed class Bot {
36
36
private const ushort CallbackSleep = 500 ; // In miliseconds
37
37
38
38
private static readonly ConcurrentDictionary < string , Bot > Bots = new ConcurrentDictionary < string , Bot > ( ) ;
@@ -527,7 +527,7 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) {
527
527
case EResult . InvalidPassword :
528
528
Logging . LogGenericWarning ( BotName , "Unable to login to Steam: " + result + ", will retry after a longer while" ) ;
529
529
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
531
531
await Start ( ) . ConfigureAwait ( false ) ;
532
532
break ;
533
533
case EResult . OK :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ limitations under the License.
31
31
using System . Threading . Tasks ;
32
32
33
33
namespace ArchiSteamFarm {
34
- internal class CardsFarmer {
34
+ internal sealed class CardsFarmer {
35
35
private const byte StatusCheckSleep = 5 ; // In minutes, how long to wait before checking the appID again
36
36
private const ushort MaxFarmingTime = 600 ; // In minutes, how long ASF is allowed to farm one game in solo mode
37
37
You can’t perform that action at this time.
0 commit comments