Skip to content

Commit

Permalink
Issue #5828 - cleanups from review
Browse files Browse the repository at this point in the history
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Feb 15, 2021
1 parent 805d6ef commit 0e4ed5c
Showing 1 changed file with 3 additions and 16 deletions.
Expand Up @@ -71,23 +71,10 @@ public WebSocketContainer getContainer(HttpClient httpClient)
}

// See: https://github.com/eclipse-ee4j/websocket-api/issues/212
private WebSocketContainer registerShutdown(JavaxWebSocketClientContainer container)
private void registerShutdown(JavaxWebSocketClientContainer container)
{
// Register as JVM runtime shutdown hook?
// Register as JVM runtime shutdown hook.
ShutdownThread.register(container);

if (!container.isStarted())
{
try
{
container.start();
}
catch (Exception e)
{
throw new RuntimeException("Unable to start Client Container", e);
}
}

return container;
LifeCycle.start(container);
}
}

0 comments on commit 0e4ed5c

Please sign in to comment.