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:
parent
34c8ded756
commit
fa8b1c9220
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue