From a83754e7f1a52a153a0af4f66cf12ea1d9413589 Mon Sep 17 00:00:00 2001 From: Gravit Date: Sun, 10 Feb 2019 17:01:19 +0700 Subject: [PATCH] =?UTF-8?q?[FIX]=20=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BD=D0=B0=20=D0=B4=D0=BE=D1=81=D1=82=D1=83?= =?UTF-8?q?=D0=BF=D0=BD=D0=BE=D1=81=D1=82=D1=8C=20websockets=20=D0=B2=20Re?= =?UTF-8?q?quest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/ru/gravit/launcher/request/Request.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LauncherAPI/src/main/java/ru/gravit/launcher/request/Request.java b/LauncherAPI/src/main/java/ru/gravit/launcher/request/Request.java index b8f5862e..8d1dce9e 100644 --- a/LauncherAPI/src/main/java/ru/gravit/launcher/request/Request.java +++ b/LauncherAPI/src/main/java/ru/gravit/launcher/request/Request.java @@ -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()) {