From 92920274207200239e3bcee629a469e2685eebdd Mon Sep 17 00:00:00 2001
From: duxinglangzi <871364441@qq.com>
Date: 星期一, 25 四月 2022 12:52:51 +0800
Subject: [PATCH] 增加关闭

---
 src/main/java/com/duxinglangzi/canal/starter/container/AbstractCanalTransponderContainer.java |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/duxinglangzi/canal/starter/container/AbstractCanalTransponderContainer.java b/src/main/java/com/duxinglangzi/canal/starter/container/AbstractCanalTransponderContainer.java
index bd0e919..a72b664 100644
--- a/src/main/java/com/duxinglangzi/canal/starter/container/AbstractCanalTransponderContainer.java
+++ b/src/main/java/com/duxinglangzi/canal/starter/container/AbstractCanalTransponderContainer.java
@@ -22,6 +22,7 @@
 
     protected abstract void doStart();
     protected abstract void initConnect();
+    protected abstract void disconnect();
 
 
     @Override
@@ -32,6 +33,7 @@
                 sleep(5L * SLEEP_TIME_MILLI_SECONDS);
             initConnect();
             while (isRunning() && !Thread.currentThread().isInterrupted()) doStart();
+            disconnect(); // 绾跨▼琚粓姝㈡垨鑰呭鍣ㄥ凡缁忓仠姝�
         }).start();
         setRunning(true);
     }

--
Gitblit v1.8.0