From 7aa4457f3436411a086349af7304d643b5c1d478 Mon Sep 17 00:00:00 2001 From: Redned Date: Fri, 23 Aug 2019 22:49:48 -0500 Subject: [PATCH] Uncomment disconnect code for downstream disconnect - This should hopefully reduce spam in console when a java client is disconnected. The disconnect handler will be rewritten later to address the not being able to reconnect issue. --- .../org/geysermc/connector/network/session/GeyserSession.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java index 231fe7ef5..4eff93447 100644 --- a/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java +++ b/connector/src/main/java/org/geysermc/connector/network/session/GeyserSession.java @@ -158,7 +158,7 @@ public class GeyserSession implements PlayerSession, Player { public void disconnected(DisconnectedEvent event) { loggedIn = false; connector.getLogger().info(authenticationData.getName() + " has disconnected from remote java server on address " + remoteServer.getAddress() + " because of " + event.getReason()); - // upstream.disconnect(event.getReason()); + upstream.disconnect(event.getReason()); } @Override @@ -299,4 +299,4 @@ public class GeyserSession implements PlayerSession, Player { playStatusPacket.setStatus(PlayStatusPacket.Status.PLAYER_SPAWN); upstream.sendPacket(playStatusPacket); } -} \ No newline at end of file +}