Whelps, the info in the issue was not accurate. We are looking for the exception that writes a warning to the log file, not the console, not an error. This should be the right fix

This commit is contained in:
Zack Piispanen 2013-09-21 12:52:46 -04:00
parent d0ba424cd1
commit b23cdb41c3

View file

@ -139,17 +139,6 @@ namespace TShockAPI
buffers[socket.whoAmI].Pop(buff.Length); buffers[socket.whoAmI].Pop(buff.Length);
return true; return true;
} }
}
catch (SocketException e)
{
switch ((uint)e.ErrorCode)
{
case 0x80004005:
break;
default:
Log.ConsoleError(e.ToString());
break;
}
} }
catch (Exception e) catch (Exception e)
{ {
@ -212,7 +201,14 @@ namespace TShockAPI
} }
catch (SocketException e) catch (SocketException e)
{ {
Log.Warn(e.ToString()); switch ((uint)e.ErrorCode)
{
case 0x80004005:
break;
default:
Log.Warn(e.ToString());
break;
}
} }
catch (IOException e) catch (IOException e)
{ {