Merge pull request #892 from wabbajack-tools/issue-881

Issue 881
This commit is contained in:
Timothy Baldridge 2020-05-30 08:30:58 -07:00 committed by GitHub
commit f6092baffe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,8 @@
### Changelog ### 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 #### 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 * 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 * 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; MegaApiClient.AuthInfos authInfos;
try
{
MegaApiClient.Logout();
}
catch (NotSupportedException ex)
{
// Not logged in, so ignore
}
try try
{ {
authInfos = MegaApiClient.GenerateAuthInfos(username, password.ToNormalString(), mfa); authInfos = MegaApiClient.GenerateAuthInfos(username, password.ToNormalString(), mfa);