1
0
Fork 0

Resolve client crash on request to closed server

This commit is contained in:
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> /// <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>