Issue #5828 - cleanups from review

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2021-02-15 15:13:02 +11:00
parent 805d6efedd
commit 0e4ed5c7b1
1 changed files with 3 additions and 16 deletions

View File

@ -71,23 +71,10 @@ public class JavaxWebSocketClientContainerProvider extends ContainerProvider
}
// 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);
}
}