From b4e04204a992af41be904470c917ee9d41626130 Mon Sep 17 00:00:00 2001 From: A248 Date: Wed, 15 Mar 2023 23:02:02 -0400 Subject: [PATCH] Handle exceptions in ConnectionRequestBuilderImpl#fireAndForget (#875) See #859 --- .../proxy/connection/client/ConnectedPlayer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java index 61a2b5565..3d9d69aef 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java @@ -1244,7 +1244,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player, @Override public void fireAndForget() { - connectWithIndication(); + connectWithIndication().exceptionally((ex) -> { + logger.error("Exception while connecting with indication", ex); + return null; + }); } } }