Ensure CSS modules are closed before blueprint containers on shutdown
[mdsal.git] / src / main / java / org / opendaylight / controller / blueprint / BlueprintContainerRestartServiceImpl.java
index d0e39873d99b3d223e70d15f11694853214da428..e70fc372b73f7ed5e328d9d37151fb863abb7908 100644 (file)
@@ -77,6 +77,10 @@ class BlueprintContainerRestartServiceImpl implements AutoCloseable, BlueprintCo
 
     @Override
     public void restartContainerAndDependents(final Bundle bundle) {
+        if(restartExecutor.isShutdown()) {
+            return;
+        }
+
         LOG.debug("restartContainerAndDependents for bundle {}", bundle);
 
         restartExecutor.execute(new Runnable() {