User: mnf999 Date: 01/12/19 11:52:20 Modified: src/main/org/jboss/system ServiceController.java Log: Some defensive coding Revision Changes Path 1.19 +3 -3 jboss/src/main/org/jboss/system/ServiceController.java Index: ServiceController.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/system/ServiceController.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- ServiceController.java 2001/12/19 18:01:19 1.18 +++ ServiceController.java 2001/12/19 19:52:20 1.19 @@ -43,7 +43,7 @@ * @see org.jboss.system.Service * @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a> * @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a> -* @version $Revision: 1.18 $ <p> +* @version $Revision: 1.19 $ <p> * * <b>Revisions:</b> <p> * @@ -247,7 +247,7 @@ // Get the fancy service proxy (for the lifecycle API) ctx.proxy = getServiceProxy(ctx.objectName, null); - + // If we are already created (can happen in dependencies) just return if (ctx.state == ServiceContext.CREATED || ctx.state == ServiceContext.RUNNING) return; @@ -336,7 +336,7 @@ // JSR 77 ctx.state = ServiceContext.RUNNING; - installedServices.add(ctx); + if (!installedServices.contains(ctx)) installedServices.add(ctx); // Those that depend on me are waiting for my creation, recursively create them Iterator iterator2 = ctx.dependsOnMe.iterator();
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
