Connection is already closed fix (#3587)

This commit is contained in:
dinosaur
2021-10-09 14:54:05 +08:00
committed by GitHub
parent 31a0fdc807
commit 2550d8eb65
@@ -175,8 +175,8 @@ public class CanalRabbitMQProducer extends AbstractMQProducer implements CanalMQ
public void stop() {
logger.info("## Stop RabbitMQ producer##");
try {
this.connect.close();
this.channel.close();
this.connect.close();
super.stop();
} catch (AlreadyClosedException ex) {
logger.error("Connection is already closed", ex);