mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Log out of the Mega client before logging in
This commit is contained in:
parent
05ea8733dc
commit
655c60b505
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user