From 2f16b8ffa32a754b86f70694e3e823b097da87fa Mon Sep 17 00:00:00 2001 From: Charles Daffern Date: Sun, 13 May 2012 00:44:32 +0100 Subject: [PATCH] Don't spam console with errors on unexpected disconnect. Addresses BUKKIT-693 --- src/main/java/net/minecraft/server/NetworkManager.java | 2 +- src/main/java/net/minecraft/server/NetworkWriterThread.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java index a3d4d396d1..fd821c4444 100644 --- a/src/main/java/net/minecraft/server/NetworkManager.java +++ b/src/main/java/net/minecraft/server/NetworkManager.java @@ -173,7 +173,7 @@ public class NetworkManager { } private void a(Exception exception) { - exception.printStackTrace(); + // exception.printStackTrace(); // CraftBukkit - Remove console spam this.a("disconnect.genericReason", new Object[] { "Internal exception: " + exception.toString()}); } diff --git a/src/main/java/net/minecraft/server/NetworkWriterThread.java b/src/main/java/net/minecraft/server/NetworkWriterThread.java index 19db566355..0b742c4bd0 100644 --- a/src/main/java/net/minecraft/server/NetworkWriterThread.java +++ b/src/main/java/net/minecraft/server/NetworkWriterThread.java @@ -41,7 +41,7 @@ class NetworkWriterThread extends Thread { NetworkManager.a(this.a, (Exception) ioexception); } - ioexception.printStackTrace(); + // ioexception.printStackTrace(); // CraftBukkit - Don't spam console on unexpected disconnect } try {