geforkt von Mirrors/Paper
SPIGOT-5867, MC-193339: NPE during shutdown when rcon enabled with no password
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
e934f57adf
Commit
7d66dc54c4
11
paper-server/nms-patches/RemoteControlListener.patch
Normale Datei
11
paper-server/nms-patches/RemoteControlListener.patch
Normale Datei
@ -0,0 +1,11 @@
|
|||||||
|
--- a/net/minecraft/server/RemoteControlListener.java
|
||||||
|
+++ b/net/minecraft/server/RemoteControlListener.java
|
||||||
|
@@ -109,7 +109,7 @@
|
||||||
|
RemoteControlListener.LOGGER.debug("closeSocket: {}", serversocket);
|
||||||
|
|
||||||
|
try {
|
||||||
|
- serversocket.close();
|
||||||
|
+ if (serversocket != null) serversocket.close(); // CraftBukkit - SPIGOT-5867, MC-193339: NPE during shutdown if no password
|
||||||
|
} catch (IOException ioexception) {
|
||||||
|
RemoteControlListener.LOGGER.warn("Failed to close socket", ioexception);
|
||||||
|
}
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren