minor chagne

Original commit: elastic/x-pack-elasticsearch@b7306dc60a
This commit is contained in:
Areek Zillur 2014-10-23 15:42:45 -04:00
parent 28bc28e30d
commit 941a440046
1 changed files with 3 additions and 7 deletions

View File

@ -308,13 +308,9 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
if (!event.state().blocks().hasGlobalBlock(GatewayService.STATE_NOT_RECOVERED_BLOCK)) { if (!event.state().blocks().hasGlobalBlock(GatewayService.STATE_NOT_RECOVERED_BLOCK)) {
if (!pendingRegistrations.isEmpty()) { if (!pendingRegistrations.isEmpty()) {
while (true) { ListenerHolder pendingRegistrationLister;
ListenerHolder pendingRegistrationLister = pendingRegistrations.poll(); while ((pendingRegistrationLister = pendingRegistrations.poll()) != null) {
if (pendingRegistrationLister != null) { registerListener(pendingRegistrationLister);
registerListener(pendingRegistrationLister);
} else {
break;
}
} }
} }