From 374e02cbc3990622f3679d98a71aa27b011cc372 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Tue, 22 Dec 2020 15:53:10 +1100 Subject: [PATCH] register ShutdownThread in doStart Signed-off-by: Lachlan Roberts --- .../client/internal/JavaxWebSocketClientContainer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jetty-websocket/websocket-javax-client/src/main/java/org/eclipse/jetty/websocket/javax/client/internal/JavaxWebSocketClientContainer.java b/jetty-websocket/websocket-javax-client/src/main/java/org/eclipse/jetty/websocket/javax/client/internal/JavaxWebSocketClientContainer.java index f96863b2268..d6e521dc487 100644 --- a/jetty-websocket/websocket-javax-client/src/main/java/org/eclipse/jetty/websocket/javax/client/internal/JavaxWebSocketClientContainer.java +++ b/jetty-websocket/websocket-javax-client/src/main/java/org/eclipse/jetty/websocket/javax/client/internal/JavaxWebSocketClientContainer.java @@ -60,7 +60,13 @@ public class JavaxWebSocketClientContainer extends JavaxWebSocketContainer imple public JavaxWebSocketClientContainer() { this(new WebSocketComponents()); + } + + @Override + protected void doStart() throws Exception + { ShutdownThread.register(this); + super.doStart(); } @Override