mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Properly error if Microsoft authentication sends an error
This commit is contained in:
parent
d602d820dd
commit
95ba2a10ad
2 changed files with 3 additions and 2 deletions
|
@ -143,7 +143,7 @@
|
|||
<dependency>
|
||||
<groupId>com.github.GeyserMC</groupId>
|
||||
<artifactId>MCAuthLib</artifactId>
|
||||
<version>0e48a094f2</version>
|
||||
<version>6c99331</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
|
@ -658,7 +658,8 @@ public class GeyserSession implements CommandSender {
|
|||
connectDownstream();
|
||||
} catch (RequestException e) {
|
||||
if (!(e instanceof AuthPendingException)) {
|
||||
throw new RuntimeException("Failed to log in with Microsoft code!", e);
|
||||
connector.getLogger().error("Failed to log in with Microsoft code!", e);
|
||||
disconnect(e.toString());
|
||||
} else {
|
||||
// Wait one second before trying again
|
||||
connector.getGeneralThreadPool().schedule(() -> attemptCodeAuthentication(msaAuthenticationService), 1, TimeUnit.SECONDS);
|
||||
|
|
Loading…
Reference in a new issue