mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Don't try to connect to the remote server with invalid credentials
Fixes #2458
This commit is contained in:
parent
e20247b6d6
commit
919e84c23f
1 changed files with 9 additions and 1 deletions
|
@ -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();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue