File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 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.
3333using System . Threading . Tasks ;
3434
3535namespace 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 ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ limitations under the License.
3232using System . Xml ;
3333
3434namespace 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 :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ limitations under the License.
3131using System . Threading . Tasks ;
3232
3333namespace 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
You can’t perform that action at this time.
0 commit comments