Merge pull request #25 from Serraniel/bugfix/#10-no-reprompt-on-wrong-login-data

Bugfix/#10 no reprompt on wrong login data

Fixes a bug added during fixing of #10 .
This commit is contained in:
Daniel 2019-01-30 20:55:33 +01:00 committed by GitHub
commit 7c6049a107
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -183,17 +183,16 @@ namespace DML.Application.Classes
while (!loggedIn)
{
var token = "abc";
try
{
if (!string.IsNullOrEmpty(Settings.LoginToken))
{
Logger.Debug("Trying to login with last known token...");
loggedIn = await DMLClient.Login(token);
loggedIn = await DMLClient.Login(Settings.LoginToken);
}
}
catch (HttpException e)
catch (HttpException)
{
Logger.Warn("HTTPException occured during login. Probably from login token.");
}