Issue #414 ContainerLifeCycle should not stop failed component on remove

Only stop isRunning components when removed
This commit is contained in:
Greg Wilkins 2016-03-10 12:29:02 +11:00
parent 4c99beeaba
commit 34c8ded756
1 changed files with 3 additions and 1 deletions

View File

@ -538,7 +538,9 @@ public class ContainerLifeCycle extends AbstractLifeCycle implements Container,
{
try
{
stop((LifeCycle)bean._bean);
LifeCycle lc=(LifeCycle)bean._bean;
if (lc.isRunning())
stop(lc);
}
catch(RuntimeException | Error e)
{