You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2010/12/09 20:15:31 UTC
svn commit: r1044093 -
/tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java
Author: markt
Date: Thu Dec 9 19:15:30 2010
New Revision: 1044093
URL: http://svn.apache.org/viewvc?rev=1044093&view=rev
Log:
mserver != null will never be true if the mbean was registered. Drop the check since the unregister method will handle things correctly anyway
Modified:
tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java
Modified: tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java?rev=1044093&r1=1044092&r2=1044093&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java (original)
+++ tomcat/trunk/java/org/apache/coyote/AbstractProtocolHandler.java Thu Dec 9 19:15:30 2010
@@ -418,10 +418,8 @@ public abstract class AbstractProtocolHa
getName()), e);
}
- // If object was pre-registered (mserver != null) what ever registered
- // the ProtocolHandler should de-register it
- if (oname != null && mserver == null) {
- Registry.getRegistry(null, null).unregisterComponent(oname);
+ if (oname != null) {
+ Registry.getRegistry(null, null).unregisterComponent(oname);
}
if (tpOname != null)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org