3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-03 14:50:19 +01:00

Properly error if Microsoft authentication sends an error

Dieser Commit ist enthalten in:
Camotoy 2021-09-08 10:13:46 -04:00
Ursprung d602d820dd
Commit 95ba2a10ad
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -143,7 +143,7 @@
<dependency> <dependency>
<groupId>com.github.GeyserMC</groupId> <groupId>com.github.GeyserMC</groupId>
<artifactId>MCAuthLib</artifactId> <artifactId>MCAuthLib</artifactId>
<version>0e48a094f2</version> <version>6c99331</version>
<scope>compile</scope> <scope>compile</scope>
</dependency> </dependency>
<dependency> <dependency>

Datei anzeigen

@ -658,7 +658,8 @@ public class GeyserSession implements CommandSender {
connectDownstream(); connectDownstream();
} catch (RequestException e) { } catch (RequestException e) {
if (!(e instanceof AuthPendingException)) { 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 { } else {
// Wait one second before trying again // Wait one second before trying again
connector.getGeneralThreadPool().schedule(() -> attemptCodeAuthentication(msaAuthenticationService), 1, TimeUnit.SECONDS); connector.getGeneralThreadPool().schedule(() -> attemptCodeAuthentication(msaAuthenticationService), 1, TimeUnit.SECONDS);