Suppress those pesky warnings

This commit is contained in:
White 2014-09-10 14:31:20 +09:30
parent 34b268f1db
commit 70a9fc04c5

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;