From 224273d97b356f694e3634998ff9e485b6f68bf7 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Wed, 30 Jan 2019 20:47:13 +0100 Subject: [PATCH] #10 Removed dead code --- .../Classes/Core.cs | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/Discord Media Loader.Application/Classes/Core.cs b/Discord Media Loader.Application/Classes/Core.cs index 930e251..f570af6 100644 --- a/Discord Media Loader.Application/Classes/Core.cs +++ b/Discord Media Loader.Application/Classes/Core.cs @@ -206,42 +206,6 @@ namespace DML.Application.Classes } } - /*while ((Client.LoginState != LoginState.LoggedIn || Client.ConnectionState!=ConnectionState.Connected) && !abort) - { - Logger.Debug(Client.ConnectionState.ToString()); - Logger.Debug(Client.LoginState.ToString()); - - Logger.Trace("Entering login loop."); - - try - { - if (Client.ConnectionState == ConnectionState.Connecting) - continue; - - if (!string.IsNullOrEmpty(Settings.LoginToken)) - { - Logger.Debug("Trying to login with last known token..."); - await Client.LoginAsync(TokenType.User, Settings.LoginToken); - await Client.StartAsync(); - await Task.Delay(1000); - } - - } - catch (HttpException ex) - { - Logger.Warn($"Login seems to have failed or gone wrong: {ex.GetType().Name} - {ex.Message}"); - } - - if (Client.LoginState == LoginState.LoggedOut) - { - Settings.Password = string.Empty; - Logger.Debug("Showing dialog for username and password..."); - var loginDlg = new LoginDialog(); - loginDlg.ShowDialog(); - Logger.Trace("Dialog closed."); - } - }*/ - Logger.Debug("Start checking for invalid jobs..."); //Client