Skip to content

Commit

Permalink
Un-commended try-catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
milutinke committed Mar 12, 2024
1 parent 2ce0311 commit 5044ec9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MinecraftClient/Protocol/Handlers/Protocol18.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ internal Tuple<int, Queue<byte>> ReadNextPacket()
/// <returns>TRUE if the packet was processed, FALSE if ignored or unknown</returns>
internal bool HandlePacket(int packetId, Queue<byte> packetData)
{
//try
//{
try
{
switch (currentState)
{
// https://wiki.vg/Protocol#Login
Expand Down Expand Up @@ -454,7 +454,7 @@ internal bool HandlePacket(int packetId, Queue<byte> packetData)
default:
return true;
}
/*}
}
catch (Exception innerException)
{
if (innerException is ThreadAbortException || innerException is SocketException ||
Expand All @@ -469,7 +469,7 @@ internal bool HandlePacket(int packetId, Queue<byte> packetData)
currentState == CurrentState.Login,
innerException.GetType()),
innerException);
}*/
}

return true;
}
Expand Down

0 comments on commit 5044ec9

Please sign in to comment.