forked from TuxCoding/FastLogin
Fix logging exceptions on encryption enabling
This commit is contained in:
@ -152,8 +152,9 @@ public class VerifyResponseTask implements Runnable {
|
|||||||
//encrypt/decrypt following packets
|
//encrypt/decrypt following packets
|
||||||
//the client expects this behaviour
|
//the client expects this behaviour
|
||||||
encryptConnectionMethod.invoke(networkManager, loginKey);
|
encryptConnectionMethod.invoke(networkManager, loginKey);
|
||||||
} catch (ReflectiveOperationException ex) {
|
} catch (Exception ex) {
|
||||||
disconnect(plugin.getCore().getMessage("error-kick"), false, "Couldn't enable encryption", ex);
|
plugin.getLogger().log(Level.SEVERE, "Couldn't enable encryption", ex);
|
||||||
|
disconnect(plugin.getCore().getMessage("error-kick"), false, "Couldn't enable encryption");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user