mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +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;
|
WebSocketEvent result = event.result;
|
||||||
waitEventHandler.requests.remove(event);
|
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;
|
ErrorRequestEvent errorRequestEvent = (ErrorRequestEvent) event.result;
|
||||||
throw new ExecutionException(new RequestException(errorRequestEvent.error));
|
throw new ExecutionException(new RequestException(errorRequestEvent.error));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue