3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

Hid stacktrace for socket exceptions.

Dieser Commit ist enthalten in:
EvilSeph 2011-04-23 04:47:38 -04:00
Ursprung 5dfe732f18
Commit d156fcf9c8

Datei anzeigen

@ -9,6 +9,11 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
// CraftBukkit start
import java.net.SocketException;
import java.net.SocketTimeoutException;
// CraftBukkit end
public abstract class Packet {
private static Map a = new HashMap();
@ -84,6 +89,16 @@ public abstract class Packet {
return null;
}
// CraftBukkit start
catch (SocketTimeoutException exception) {
System.out.println("Read timed out");
return null;
} catch (SocketException exception) {
System.out.println("Connection reset");
return null;
}
// CraftBukkit end
PacketCounter packetcounter = (PacketCounter) e.get(Integer.valueOf(i));
if (packetcounter == null) {