If ClientContainer is being stopped, then we can unregister it from
the ShutdownThread. This happens when ClientContainer is added as a managed bean to a ContainerLifeCycle and the container is stopped.
This commit is contained in:
parent
3f5a30282d
commit
5e3c8821bb
|
@ -30,7 +30,6 @@ import java.util.concurrent.CopyOnWriteArraySet;
|
|||
import java.util.concurrent.ExecutionException;
|
||||
import java.util.concurrent.Executor;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
import javax.websocket.ClientEndpoint;
|
||||
import javax.websocket.ClientEndpointConfig;
|
||||
import javax.websocket.DeploymentException;
|
||||
|
@ -187,6 +186,7 @@ public class ClientContainer extends ContainerLifeCycle implements WebSocketCont
|
|||
@Override
|
||||
protected void doStop() throws Exception
|
||||
{
|
||||
ShutdownThread.deregister(this);
|
||||
endpointClientMetadataCache.clear();
|
||||
super.doStop();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue