SwapAuthProviderCommand фикс

This commit is contained in:
Gravit 2018-12-26 20:19:53 +07:00
parent 245db2dda5
commit 5f14c79415
No known key found for this signature in database
GPG key ID: 061981E1E85D3216

View file

@ -53,9 +53,13 @@ public void invoke(String... args) throws Exception {
} else if(args[1].equals("undo"))
{
if(providersCache[index] == null) LogHelper.error("Cache clean. Undo impossible");
server.config.authProvider[index].close();
server.config.authProvider[index] = providersCache[index];
providersCache[index] = null;
else
{
server.config.authProvider[index].close();
server.config.authProvider[index] = providersCache[index];
providersCache[index] = null;
}
}
}
}