1
0
Fork 0

Resolve client crash on request to closed server

master
sheychen 2016-11-18 10:40:07 +01:00
parent 246c5ac349
commit 19ad65ed78
1 changed files with 4 additions and 4 deletions

View File

@ -227,16 +227,16 @@ namespace Galactic_Colors_Control
/// <returns>Send success</returns>
private bool Send(Data packet)
{
//try
//{
try
{
ClientSocket.Send(packet.ToBytes());
return true;
/*}
}
catch //Can't contact server
{
_errorCount++;
}
return false;*/
return false;
}
/// <summary>