Resolve client crash on request to closed server
This commit is contained in:
parent
246c5ac349
commit
19ad65ed78
|
@ -227,16 +227,16 @@ namespace Galactic_Colors_Control
|
||||||
/// <returns>Send success</returns>
|
/// <returns>Send success</returns>
|
||||||
private bool Send(Data packet)
|
private bool Send(Data packet)
|
||||||
{
|
{
|
||||||
//try
|
try
|
||||||
//{
|
{
|
||||||
ClientSocket.Send(packet.ToBytes());
|
ClientSocket.Send(packet.ToBytes());
|
||||||
return true;
|
return true;
|
||||||
/*}
|
}
|
||||||
catch //Can't contact server
|
catch //Can't contact server
|
||||||
{
|
{
|
||||||
_errorCount++;
|
_errorCount++;
|
||||||
}
|
}
|
||||||
return false;*/
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Reference in New Issue