File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
proxy/src/main/java/com/velocitypowered/proxy/connection/client Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1287,6 +1287,11 @@ private boolean sendKeepAliveToBackend(final @Nullable VelocityServerConnection
12871287 public void switchToConfigState() {
12881288 server.getEventManager().fire(new PlayerEnterConfigurationEvent(this, getConnectionInFlightOrConnectedServer()))
12891289 .completeOnTimeout(null, 5, TimeUnit.SECONDS).thenRunAsync(() -> {
1290+ // if the connection was closed earlier, there is a risk that the player is no longer connected
1291+ if (!connection.getChannel().isActive()) {
1292+ return;
1293+ }
1294+
12901295 if (bundleHandler.isInBundleSession()) {
12911296 bundleHandler.toggleBundleSession();
12921297 connection.write(BundleDelimiterPacket.INSTANCE);
You can’t perform that action at this time.
0 commit comments