Log out of the Mega client before logging in

This commit is contained in:
Timothy Baldridge 2020-05-30 06:23:23 -06:00
parent 05ea8733dc
commit 655c60b505
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,8 @@
### Changelog
#### Version - 2.0.8.0 - ??
* Make sure the MEGA client is logged out before logging in (#881)
#### Version - 2.0.7.0 - 5/28/2020
* Code is now robust when dealing with invasive Anti-virus software. We'll retry deletes/opens if the file is in use
* Rework HTTP retries for all sites to reduce the amount of 503 errors we get from LL

View File

@ -53,6 +53,15 @@ namespace Wabbajack.Lib.Downloaders
{
MegaApiClient.AuthInfos authInfos;
try
{
MegaApiClient.Logout();
}
catch (NotSupportedException ex)
{
// Not logged in, so ignore
}
try
{
authInfos = MegaApiClient.GenerateAuthInfos(username, password.ToNormalString(), mfa);