Merge branch 'general-devel' of https://github.com/NyxStudios/TShock into general-devel

This commit is contained in:
Zack Piispanen 2014-09-15 09:05:45 -04:00
commit de4868a45d

View file

@ -222,6 +222,19 @@ namespace TShockAPI
}
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());
}
return false;