Archiviert
13
0

Fixed Connection Throttle handling. Fixes BUKKIT-1279

Dieser Commit ist enthalten in:
EvilSeph 2012-03-22 18:54:30 -04:00
Ursprung 8fb141bfa0
Commit ddaf3c84d3

Datei anzeigen

@ -26,7 +26,13 @@ class NetworkAcceptThread extends Thread {
if (socket != null) {
synchronized (NetworkListenThread.getRecentConnectionAttempts(this.listenThread)) {
InetAddress inetaddress = socket.getInetAddress();
connectionThrottle = this.a.server.getConnectionThrottle(); // CraftBukkit
// CraftBukkit start
if (this.a.server == null) {
socket.close();
continue;
}
connectionThrottle = this.a.server.getConnectionThrottle();
// CraftBukkit end
// CraftBukkit
if (NetworkListenThread.getRecentConnectionAttempts(this.listenThread).containsKey(inetaddress) && System.currentTimeMillis() - ((Long) NetworkListenThread.getRecentConnectionAttempts(this.listenThread).get(inetaddress)).longValue() < connectionThrottle) {