Fix karaf restart instruction
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / config / yang / config / actor_system_provider / impl / factory / osgi / QuarantinedMonitorActorPropsFactory.java
index 348241d358eac29680796e037eb69b4327d9ffac..3917c5ee5a86c8031d12b0e43c3123d66d9c6eee 100644 (file)
@@ -21,7 +21,7 @@ public class QuarantinedMonitorActorPropsFactory {
             // restart the entire karaf container
             LOG.warn("Restarting karaf container");
             System.setProperty("karaf.restart.jvm", "true");
-            bundleContext.getBundle().stop();
+            bundleContext.getBundle(0).stop();
         });
     }
 }