mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
Remove address from throttle hashmap before killing socket. Fixes BUKKIT-659
This commit is contained in:
parent
e3363db0a9
commit
e98cfbd992
1 changed files with 2 additions and 1 deletions
|
@ -157,9 +157,10 @@ public class NetLoginHandler extends NetHandler {
|
|||
String s = pingEvent.getMotd() + "\u00A7" + this.server.serverConfigurationManager.getPlayerCount() + "\u00A7" + pingEvent.getMaxPlayers();
|
||||
// CraftBukkit end
|
||||
|
||||
this.server.networkListenThread.a(this.networkManager.getSocket()); // CraftBukkit - cleanup before killing connection
|
||||
this.networkManager.queue(new Packet255KickDisconnect(s));
|
||||
this.networkManager.d();
|
||||
this.server.networkListenThread.a(this.networkManager.getSocket());
|
||||
// this.server.networkListenThread.a(this.networkManager.getSocket()); // CraftBukkit - moved up
|
||||
this.c = true;
|
||||
} catch (Exception exception) {
|
||||
exception.printStackTrace();
|
||||
|
|
Loading…
Reference in a new issue