@@ -524,6 +524,12 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) {
524
524
case EResult . AccountLoginDeniedNeedTwoFactor :
525
525
TwoFactorAuth = Program . GetUserInput ( SteamLogin , Program . EUserInputType . TwoFactorAuthentication ) ;
526
526
break ;
527
+ case EResult . InvalidPassword :
528
+ Logging . LogGenericWarning ( BotName , "Unable to login to Steam: " + result + ", will retry after a longer while" ) ;
529
+ await Stop ( ) . ConfigureAwait ( false ) ;
530
+ await Utilities . SleepAsync ( 1000 * 20 * Utilities . RandomDice ( ) ) . ConfigureAwait ( false ) ; // TODO: Find out the required delay
531
+ await Start ( ) . ConfigureAwait ( false ) ;
532
+ break ;
527
533
case EResult . OK :
528
534
Logging . LogGenericInfo ( BotName , "Successfully logged on!" ) ;
529
535
@@ -551,12 +557,12 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) {
551
557
break ;
552
558
case EResult . Timeout :
553
559
case EResult . TryAnotherCM :
554
- Logging . LogGenericWarning ( BotName , "Unable to login to Steam: " + callback . Result + " / " + callback . ExtendedResult + ", retrying..." ) ;
560
+ Logging . LogGenericWarning ( BotName , "Unable to login to Steam: " + result + ", retrying..." ) ;
555
561
await Stop ( ) . ConfigureAwait ( false ) ;
556
562
await Start ( ) . ConfigureAwait ( false ) ;
557
563
break ;
558
564
default :
559
- Logging . LogGenericWarning ( BotName , "Unable to login to Steam: " + callback . Result + " / " + callback . ExtendedResult ) ;
565
+ Logging . LogGenericWarning ( BotName , "Unable to login to Steam: " + result ) ;
560
566
await Shutdown ( ) . ConfigureAwait ( false ) ;
561
567
break ;
562
568
}
0 commit comments