stopRunning in example

This commit is contained in:
Neal Hu
2018-06-08 00:00:29 +08:00
parent 187b98fbda
commit 4022aa8b5a

View File

@@ -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();