mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
stopRunning in example
This commit is contained in:
@@ -96,13 +96,7 @@ public class AbstractCanalClientTest {
|
|||||||
if (!running) {
|
if (!running) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
running = false;
|
connector.stopRunning();
|
||||||
if (waiting) {
|
|
||||||
if (connector instanceof ClusterCanalConnector) {
|
|
||||||
((ClusterCanalConnector) connector).setRetryTimes(-1);
|
|
||||||
}
|
|
||||||
thread.interrupt();
|
|
||||||
}
|
|
||||||
if (thread != null) {
|
if (thread != null) {
|
||||||
try {
|
try {
|
||||||
thread.join();
|
thread.join();
|
||||||
|
|||||||
Reference in New Issue
Block a user