Update if statement for send method
This commit is contained in:
parent
9f81994017
commit
e51e725604
@ -188,14 +188,11 @@ namespace Client.Sockets
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!Client.Connected || !IsConnected)
|
||||
if (!IsConnected || msg == null)
|
||||
{
|
||||
IsConnected = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (msg == null) return;
|
||||
|
||||
byte[] buffer = msg;
|
||||
byte[] buffersize = BitConverter.GetBytes(buffer.Length);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user