Connection is already closed fix (#3587)
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user