mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-16 18:31:53 +01:00
Remove useless warn logging while disconnecting
Remove useless "handleDisconnection() called twice" logging. This warning log every time player kicked by server.
This commit is contained in:
parent
2005255c62
commit
36e82720c5
1 changed files with 9 additions and 0 deletions
|
@ -287,6 +287,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
// Spigot End
|
||||
if (this.channel.isOpen()) {
|
||||
this.channel.close(); // We can't wait as this may be called from an event loop.
|
||||
@@ -0,0 +0,0 @@ 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) {
|
||||
@@ -0,0 +0,0 @@ public class NetworkManager extends SimpleChannelInboundHandler<Packet<?>> {
|
||||
} else if (this.i() != null) {
|
||||
this.i().a(new ChatMessage("multiplayer.disconnect.generic", new Object[0]));
|
||||
|
|
Loading…
Add table
Reference in a new issue