Don't lock user into validation loop if they close the auth window
parent
54b7fec96b
commit
35ca8391c6
|
@ -87,10 +87,17 @@ namespace LANCommander.PlaynitePlugin
|
||||||
{
|
{
|
||||||
var gameMetadata = new List<GameMetadata>();
|
var gameMetadata = new List<GameMetadata>();
|
||||||
|
|
||||||
while (!ValidateConnection())
|
if (!ValidateConnection())
|
||||||
{
|
{
|
||||||
Logger.Trace("Authentication invalid, showing auth window...");
|
Logger.Trace("Authentication invalid, showing auth window...");
|
||||||
ShowAuthenticationWindow();
|
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
|
var games = LANCommander
|
||||||
|
|
Loading…
Reference in New Issue