Change return type of events
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / lifecycle / ContextChainImpl.java
index 1069f5b1be335779543471428205bf9ac58571e0..153945c307746a327b54d333f1743fbe10d9340b 100644 (file)
@@ -232,12 +232,13 @@ public class ContextChainImpl implements ContextChain {
 
     @Override
     public boolean continueInitializationAfterReconciliation() {
-        return isMastered(ContextChainMastershipState.INITIAL_SUBMIT) && contexts.stream()
+        return contexts.stream()
                 .filter(StatisticsContext.class::isInstance)
                 .map(StatisticsContext.class::cast)
                 .findAny()
                 .map(StatisticsContext::initialSubmitAfterReconciliation)
-                .orElse(false);
+                .orElse(false) &&
+        isMastered(ContextChainMastershipState.INITIAL_SUBMIT);
     }
 
     @Override