Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-20 21:40:06 +01:00
Handle NPE in ThreadLoginVerifier that occurs when trying to continue using a closed socket.
Dieser Commit ist enthalten in:
Ursprung
9d7a03a64a
Commit
955a78b8fd
@ -36,6 +36,10 @@ class ThreadLoginVerifier extends Thread {
|
|||||||
bufferedreader.close();
|
bufferedreader.close();
|
||||||
if (s1.equals("YES")) {
|
if (s1.equals("YES")) {
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
|
if (this.netLoginHandler.getSocket() == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
PlayerPreLoginEvent event = new PlayerPreLoginEvent(this.loginPacket.name, this.netLoginHandler.getSocket().getInetAddress());
|
PlayerPreLoginEvent event = new PlayerPreLoginEvent(this.loginPacket.name, this.netLoginHandler.getSocket().getInetAddress());
|
||||||
server.getPluginManager().callEvent(event);
|
server.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren