Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
Remove useless warn logging while disconnecting
Remove useless "handleDisconnection() called twice" logging. This warning log every time player kicked by server.
Dieser Commit ist enthalten in:
Ursprung
0d8594ae94
Commit
7d256d659f
@ -28,7 +28,7 @@ and then catch exceptions and close if they fire.
|
|||||||
Part of this commit was authored by: Spottedleaf
|
Part of this commit was authored by: Spottedleaf
|
||||||
|
|
||||||
diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java
|
diff --git a/src/main/java/net/minecraft/server/NetworkManager.java b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||||
index b1dededc15cce686ead74a99bee64c89ac1de22c..289b17addd71aeab8a392e8f6a53d4c6329cf562 100644
|
index b1dededc15cce686ead74a99bee64c89ac1de22c..32886109d03f9991446381160d5406056d2bf860 100644
|
||||||
--- a/src/main/java/net/minecraft/server/NetworkManager.java
|
--- a/src/main/java/net/minecraft/server/NetworkManager.java
|
||||||
+++ b/src/main/java/net/minecraft/server/NetworkManager.java
|
+++ b/src/main/java/net/minecraft/server/NetworkManager.java
|
||||||
@@ -64,6 +64,10 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
@@ -64,6 +64,10 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
@ -287,6 +287,15 @@ index b1dededc15cce686ead74a99bee64c89ac1de22c..289b17addd71aeab8a392e8f6a53d4c6
|
|||||||
// Spigot End
|
// Spigot End
|
||||||
if (this.channel.isOpen()) {
|
if (this.channel.isOpen()) {
|
||||||
this.channel.close(); // We can't wait as this may be called from an event loop.
|
this.channel.close(); // We can't wait as this may be called from an event loop.
|
||||||
|
@@ -327,7 +472,7 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
|
public void handleDisconnection() {
|
||||||
|
if (this.channel != null && !this.channel.isOpen()) {
|
||||||
|
if (this.o) {
|
||||||
|
- NetworkManager.LOGGER.warn("handleDisconnection() called twice");
|
||||||
|
+ //NetworkManager.LOGGER.warn("handleDisconnection() called twice"); // Paper - Do not log useless message
|
||||||
|
} else {
|
||||||
|
this.o = true;
|
||||||
|
if (this.j() != null) {
|
||||||
@@ -335,7 +480,7 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
@@ -335,7 +480,7 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
||||||
} else if (this.i() != null) {
|
} else if (this.i() != null) {
|
||||||
this.i().a(new ChatMessage("multiplayer.disconnect.generic", new Object[0]));
|
this.i().a(new ChatMessage("multiplayer.disconnect.generic", new Object[0]));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren