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:
Simone Bordet 2014-02-03 12:05:56 +01:00
parent 3f5a30282d
commit 5e3c8821bb
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}