From: markt Date: Tue, 27 Jul 2010 20:27:56 +0000 (+0000) Subject: Fix unit test failure with APR connector. Make sure MBeans are de-registered when... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=bdb19f3b4114360b9d4b89d6647e8a5c8f73facf;p=tomcat7.0 Fix unit test failure with APR connector. Make sure MBeans are de-registered when connector stops. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@979853 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/coyote/http11/Http11AprProtocol.java b/java/org/apache/coyote/http11/Http11AprProtocol.java index ae94a0e79..5b782e5df 100644 --- a/java/org/apache/coyote/http11/Http11AprProtocol.java +++ b/java/org/apache/coyote/http11/Http11AprProtocol.java @@ -169,6 +169,7 @@ public class Http11AprProtocol implements ProtocolHandler, MBeanRegistration { if(log.isInfoEnabled()) log.info(sm.getString("http11protocol.stop", getName())); endpoint.destroy(); + cHandler.recycledProcessors.clear(); if( tpOname!=null ) Registry.getRegistry(null, null).unregisterComponent(tpOname); if( rgOname != null )