mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-03-28 12:08:19 +03:00
SwapAuthProviderCommand фикс
This commit is contained in:
parent
245db2dda5
commit
5f14c79415
1 changed files with 7 additions and 3 deletions
|
@ -53,9 +53,13 @@ public void invoke(String... args) throws Exception {
|
||||||
} else if(args[1].equals("undo"))
|
} else if(args[1].equals("undo"))
|
||||||
{
|
{
|
||||||
if(providersCache[index] == null) LogHelper.error("Cache clean. Undo impossible");
|
if(providersCache[index] == null) LogHelper.error("Cache clean. Undo impossible");
|
||||||
server.config.authProvider[index].close();
|
else
|
||||||
server.config.authProvider[index] = providersCache[index];
|
{
|
||||||
providersCache[index] = null;
|
server.config.authProvider[index].close();
|
||||||
|
server.config.authProvider[index] = providersCache[index];
|
||||||
|
providersCache[index] = null;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue