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) {