return early if hosts to load is empty
@@ -748,14 +748,14 @@ public class HostManagerImpl extends AbstractService implements HostManager, Man
}
}
- if (hostsToLoad.isEmpty()) {
- return;
- }
-
if (skipConnected) {
hostsToLoad.removeAll(connected);
}
+ if (hostsToLoad.isEmpty()) {
+ return;
+ }
+
String serviceId = bus.makeLocalServiceId(HostConstant.SERVICE_ID);
final List<ConnectHostMsg> msgs = new ArrayList<ConnectHostMsg>(hostsToLoad.size());
for (String uuid : hostsToLoad) {
