Remove release specific exception handling

This commit is contained in:
ReinforceZwei 2023-04-07 20:32:55 +08:00 committed by GitHub
parent 78f5d246f9
commit f855839bb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2349,7 +2349,6 @@ namespace MinecraftClient.Protocol.Handlers
return true; //Packet processed return true; //Packet processed
} }
#if Release
catch (Exception innerException) catch (Exception innerException)
{ {
if (innerException is ThreadAbortException || innerException is SocketException || innerException.InnerException is SocketException) if (innerException is ThreadAbortException || innerException is SocketException || innerException.InnerException is SocketException)
@ -2363,20 +2362,6 @@ namespace MinecraftClient.Protocol.Handlers
innerException.GetType()), innerException.GetType()),
innerException); innerException);
} }
#else
catch (SocketException)
{
throw;
}
catch (ThreadAbortException)
{
throw;
}
catch (ObjectDisposedException)
{
throw;
}
#endif
} }
/// <summary> /// <summary>