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:
@@ -287,6 +287,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
// 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.
|
||||||
|
@@ -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<?>> {
|
@@ -0,0 +0,0 @@ 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]));
|
||||||
|
|||||||
Reference in New Issue
Block a user