Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-25 15:50:14 +01:00
Don't try to connect to the remote server with invalid credentials
Fixes #2458
Dieser Commit ist enthalten in:
Ursprung
e20247b6d6
Commit
919e84c23f
@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren