Issue #3406 - changes from review

Signed-off-by: lachan-roberts <lachlan@webtide.com>
This commit is contained in:
lachan-roberts 2019-03-08 14:50:49 +11:00
parent 01bc9d3835
commit ddd60f1992
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,6 @@ public class WebSocketClient extends ContainerLifeCycle implements WebSocketPoli
public WebSocketClient()
{
this(null);
coreClient.getHttpClient().setName("Jetty-WebSocketClient@" + hashCode());
}
/**
@ -86,6 +85,9 @@ public class WebSocketClient extends ContainerLifeCycle implements WebSocketPoli
coreClient = new WebSocketCoreClient(httpClient, configurationCustomizer);
addManaged(coreClient);
if (httpClient == null)
coreClient.getHttpClient().setName("Jetty-WebSocketClient@" + hashCode());
objectFactory = new DecoratedObjectFactory();
extensionRegistry = new WebSocketExtensionRegistry();
frameHandlerFactory = new JettyWebSocketFrameHandlerFactory(this);