Fix bug where connect() wouldn't reset in-flight connections

This commit is contained in:
Andrew Steinborn
2019-08-08 17:22:38 -04:00
parent e476ee815a
commit 648c149872

View File

@@ -746,8 +746,10 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
if (status != null && !status.isSafe()) {
// If it's not safe to continue the connection we need to shut it down.
handleConnectionException(status.getAttemptedConnection(), throwable, true);
} else if ((status != null && !status.isSuccessful())) {
resetInFlightConnection();
}
})
}, minecraftConnection.eventLoop())
.thenApply(x -> x);
}