Handle exceptions in ConnectionRequestBuilderImpl#fireAndForget (#875)

See #859
This commit is contained in:
A248
2023-03-15 23:02:02 -04:00
committed by GitHub
parent 7e9a25209c
commit b4e04204a9

View File

@@ -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;
});
}
}
}