Unnecessary try-catch block

This commit is contained in:
MaxXor 2015-03-31 19:09:44 +02:00
parent 43cb701a7a
commit efa43c4c65
1 changed files with 2 additions and 7 deletions

View File

@ -267,13 +267,8 @@ private void Send(byte[] data)
if (!Connected)
return;
try
{
if (compressionEnabled)
data = new SafeQuickLZ().Compress(data, 0, data.Length, 3);
}
catch
{ }
if (compressionEnabled)
data = new SafeQuickLZ().Compress(data, 0, data.Length, 3);
if (encryptionEnabled)
data = AES.Encrypt(data, Encoding.UTF8.GetBytes(Settings.PASSWORD));