提交 c315970b 编写于 作者: Y youyong205

modify the channel manager

上级 27e5f429
......@@ -24,6 +24,7 @@ import org.unidal.helper.Files;
import org.unidal.helper.Threads;
import org.unidal.helper.Threads.Task;
import org.unidal.helper.Urls;
import org.unidal.lookup.util.StringUtils;
import org.unidal.tuple.Pair;
import com.dianping.cat.configuration.ClientConfigManager;
......@@ -289,7 +290,7 @@ public class ChannelManager implements Task {
private Pair<Boolean, String> serverConfigChanged() {
String current = loadServerConfig();
if (current != null && !current.equals(m_activeServerConfig)) {
if (!StringUtils.isEmpty(current) && !current.equals(m_activeServerConfig)) {
return new Pair<Boolean, String>(true, current);
} else {
return new Pair<Boolean, String>(false, current);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册