mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 03:31:15 +03:00
[FIX] Проверка на доступность websockets в Request
This commit is contained in:
parent
be32df3e1e
commit
a83754e7f1
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ protected final void readError(HInput input) throws IOException {
|
|||
public R request() throws Exception {
|
||||
if (!started.compareAndSet(false, true))
|
||||
throw new IllegalStateException("Request already started");
|
||||
R wsResult = requestWebSockets();
|
||||
R wsResult = null;
|
||||
if(config.nettyPort != 0)
|
||||
wsResult = requestWebSockets();
|
||||
if(wsResult != null) return wsResult;
|
||||
// Make request to LaunchServer
|
||||
try (Socket socket = IOHelper.newSocket()) {
|
||||
|
|
Loading…
Reference in a new issue