mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Catch Zlib exceptions (#1483)
Consider that connection is lost on invalid Zlib data
This commit is contained in:
parent
b78e8e064a
commit
771a5b9e08
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue