Revert "Issue #414 ContainerLifeCycle should not stop failed component on remove"

This reverts commit 34c8ded756.
The test is a race and failed components should be stopped when removed so listeners can be called.
This commit is contained in:
Greg Wilkins 2016-03-10 12:42:50 +11:00
parent 34c8ded756
commit fa8b1c9220
1 changed files with 1 additions and 3 deletions

View File

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