From b23cdb41c3a5e8ed46554ee780ef068cbb0b0bb3 Mon Sep 17 00:00:00 2001 From: Zack Piispanen Date: Sat, 21 Sep 2013 12:52:46 -0400 Subject: [PATCH] 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 --- TShockAPI/PacketBufferer.cs | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/TShockAPI/PacketBufferer.cs b/TShockAPI/PacketBufferer.cs index ad454691..d18ac47f 100644 --- a/TShockAPI/PacketBufferer.cs +++ b/TShockAPI/PacketBufferer.cs @@ -139,17 +139,6 @@ namespace TShockAPI buffers[socket.whoAmI].Pop(buff.Length); return true; } - } - catch (SocketException e) - { - switch ((uint)e.ErrorCode) - { - case 0x80004005: - break; - default: - Log.ConsoleError(e.ToString()); - break; - } } catch (Exception e) { @@ -212,7 +201,14 @@ namespace TShockAPI } catch (SocketException e) { - Log.Warn(e.ToString()); + switch ((uint)e.ErrorCode) + { + case 0x80004005: + break; + default: + Log.Warn(e.ToString()); + break; + } } catch (IOException e) {