Don't lock user into validation loop if they close the auth window

media
Pat Hartl 2023-09-15 17:36:45 -05:00
parent 54b7fec96b
commit 35ca8391c6
1 changed files with 8 additions and 1 deletions

View File

@ -87,10 +87,17 @@ namespace LANCommander.PlaynitePlugin
{
var gameMetadata = new List<GameMetadata>();
while (!ValidateConnection())
if (!ValidateConnection())
{
Logger.Trace("Authentication invalid, showing auth window...");
ShowAuthenticationWindow();
if (!ValidateConnection())
{
Logger.Trace("User cancelled authentication.");
throw new Exception("You must set up a valid connection to a LANCommander server.");
}
}
var games = LANCommander