3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 00:00:41 +01:00

Don't try to connect to the remote server with invalid credentials

Fixes #2458
Dieser Commit ist enthalten in:
Camotoy 2021-08-12 14:35:26 -04:00
Ursprung e20247b6d6
Commit 919e84c23f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -590,9 +590,17 @@ public class GeyserSession implements CommandSender {
disconnect(LanguageUtils.getPlayerLocaleString("geyser.auth.login.invalid.kick", getClientData().getLanguageCode())); disconnect(LanguageUtils.getPlayerLocaleString("geyser.auth.login.invalid.kick", getClientData().getLanguageCode()));
} catch (RequestException ex) { } catch (RequestException ex) {
ex.printStackTrace(); ex.printStackTrace();
disconnect(ex.getMessage());
} }
return null; return null;
}).whenComplete((aVoid, ex) -> connectDownstream()); }).whenComplete((aVoid, ex) -> {
if (this.closed) {
// Client disconnected during the authentication attempt
return;
}
connectDownstream();
});
} }
/** /**