fix(network): Removes error messages for socket exceptions (#503)
This commit is contained in:
parent
6a80dfea00
commit
b8a625dcd3
2 changed files with 5 additions and 7 deletions
|
|
@ -999,14 +999,12 @@ namespace Server.Network
|
|||
}
|
||||
catch (SocketException ex)
|
||||
{
|
||||
// Socket disconnected by client
|
||||
if (ex.ErrorCode != 54)
|
||||
{
|
||||
#if DEBUG
|
||||
Console.WriteLine(ex);
|
||||
#endif
|
||||
if (ex.ErrorCode != 54 && ex.ErrorCode != 89 && ex.ErrorCode != 995)
|
||||
{
|
||||
Console.WriteLine(ex);
|
||||
}
|
||||
|
||||
#endif
|
||||
Disconnect(string.Empty);
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue