Make code easier for understanding.

This commit is contained in:
wusheng 2017-10-08 21:29:13 +08:00
parent 5f1c8afcf8
commit 1f60db7ece
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class AppAndServiceRegisterClient implements BootService, GRPCChannelList
@Override
public void run() {
boolean shouldTry = true;
while (CONNECTED.equals(status) & shouldTry) {
while (CONNECTED.equals(status) && shouldTry) {
shouldTry = false;
try {
if (RemoteDownstreamConfig.Agent.APPLICATION_ID == DictionaryUtil.nullValue()) {