mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Фикс CastException
This commit is contained in:
parent
888a3a92d9
commit
35f71f6797
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public WebSocketEvent get() throws InterruptedException, ExecutionException {
|
|||
}
|
||||
WebSocketEvent result = event.result;
|
||||
waitEventHandler.requests.remove(event);
|
||||
if (event.result.getType().equals("error") || event.result.getType().equals("exception")) {
|
||||
if (event.result.getType().equals("error")) {
|
||||
ErrorRequestEvent errorRequestEvent = (ErrorRequestEvent) event.result;
|
||||
throw new ExecutionException(new RequestException(errorRequestEvent.error));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue