mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
Remove address from throttle hashmap before killing socket. Fixes BUKKIT-659
This commit is contained in:
@@ -157,9 +157,10 @@ public class NetLoginHandler extends NetHandler {
|
|||||||
String s = pingEvent.getMotd() + "\u00A7" + this.server.serverConfigurationManager.getPlayerCount() + "\u00A7" + pingEvent.getMaxPlayers();
|
String s = pingEvent.getMotd() + "\u00A7" + this.server.serverConfigurationManager.getPlayerCount() + "\u00A7" + pingEvent.getMaxPlayers();
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
|
||||||
|
this.server.networkListenThread.a(this.networkManager.getSocket()); // CraftBukkit - cleanup before killing connection
|
||||||
this.networkManager.queue(new Packet255KickDisconnect(s));
|
this.networkManager.queue(new Packet255KickDisconnect(s));
|
||||||
this.networkManager.d();
|
this.networkManager.d();
|
||||||
this.server.networkListenThread.a(this.networkManager.getSocket());
|
// this.server.networkListenThread.a(this.networkManager.getSocket()); // CraftBukkit - moved up
|
||||||
this.c = true;
|
this.c = true;
|
||||||
} catch (Exception exception) {
|
} catch (Exception exception) {
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
|
Reference in New Issue
Block a user