Merge branch '1.2.x'
# Conflicts: # docs/pom.xml # pom.xml # spring-cloud-commons-dependencies/pom.xml # spring-cloud-commons/pom.xml # spring-cloud-context/pom.xml # spring-cloud-starter/pom.xml
This commit is contained in:
@@ -102,7 +102,20 @@ public class ContextRefresher {
|
||||
}
|
||||
finally {
|
||||
ConfigurableApplicationContext closeable = capture;
|
||||
closeable.close();
|
||||
while (closeable != null) {
|
||||
try {
|
||||
closeable.close();
|
||||
}
|
||||
catch (Exception e) {
|
||||
// Ignore;
|
||||
}
|
||||
if (closeable.getParent() instanceof ConfigurableApplicationContext) {
|
||||
closeable = (ConfigurableApplicationContext) closeable.getParent();
|
||||
}
|
||||
else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user