Issue #414 ContainerLifeCycle should not stop failed component on remove
Only stop isRunning components when removed
This commit is contained in:
parent
4c99beeaba
commit
34c8ded756
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue