Fix SSL errors not properly handled

Mono throws SSL errors as IOException when using SSLStream, instead of
AuthenticationException.
This commit is contained in:
ORelio 2014-09-06 18:19:39 +02:00
parent 20ce16fd2b
commit 8eb71bd3f8

View file

@ -183,6 +183,14 @@ namespace MinecraftClient.Protocol
{
return LoginResult.SSLError;
}
catch (System.IO.IOException e)
{
if (e.Message.Contains("authentication"))
{
return LoginResult.SSLError;
}
else return LoginResult.OtherError;
}
catch
{
return LoginResult.OtherError;