Catch Zlib exceptions (#1483)

Consider that connection is lost on invalid Zlib data
This commit is contained in:
ORelio 2021-02-27 22:37:19 +01:00
parent b78e8e064a
commit 771a5b9e08

View file

@ -193,6 +193,7 @@ namespace MinecraftClient.Protocol.Handlers
catch (System.IO.IOException) { return false; }
catch (SocketException) { return false; }
catch (NullReferenceException) { return false; }
catch (Ionic.Zlib.ZlibException) { return false; }
return true;
}