mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed canal-admin
This commit is contained in:
@@ -111,11 +111,13 @@ public class ServerRunningMonitor extends AbstractCanalLifeCycle {
|
||||
|
||||
}
|
||||
|
||||
public void release() {
|
||||
public boolean release() {
|
||||
if (zkClient != null) {
|
||||
releaseRunning(); // 尝试一下release
|
||||
return true;
|
||||
} else {
|
||||
processActiveExit(); // 没有zk,直接退出
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user