Merge branch 'general-devel' of https://github.com/NyxStudios/TShock into general-devel
This commit is contained in:
commit
de4868a45d
1 changed files with 23 additions and 10 deletions
|
|
@ -222,6 +222,19 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
|
if (e.InnerException is SocketException)
|
||||||
|
{
|
||||||
|
switch (((SocketException)e.InnerException).SocketErrorCode)
|
||||||
|
{
|
||||||
|
case SocketError.Shutdown:
|
||||||
|
case SocketError.ConnectionReset:
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Log.Warn(e.ToString());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
Log.Warn(e.ToString());
|
Log.Warn(e.ToString());
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue