Revert the fix for AmqpChannelFactoryBean.destroy

https://build.spring.io/browse/INT-SI43X-278

The `AbstractAmqpChannel` is not `DisposableBean` in `4.3.x`
This commit is contained in:
Artem Bilan
2018-06-11 19:45:33 -04:00
parent a74c9ef4fe
commit c78108f803

View File

@@ -500,7 +500,9 @@ public class AmqpChannelFactoryBean extends AbstractFactoryBean<AbstractAmqpChan
@Override
protected void destroyInstance(AbstractAmqpChannel instance) throws Exception {
this.channel.destroy();
if (instance instanceof DisposableBean) {
((DisposableBean) this.channel).destroy();
}
}
}