Check UUID length is non-zero before adding a new host

This commit is contained in:
Cameron Gutman 2015-04-06 00:27:36 -04:00
commit fab8d604d2

View file

@ -88,7 +88,7 @@
}
- (BOOL) addHostToDiscovery:(Host *)host {
if (![self isHostInDiscovery:host]) {
if (host.uuid.length > 0 && ![self isHostInDiscovery:host]) {
[_hostQueue addObject:host];
if (shouldDiscover) {
[_opQueue addOperation:[self createWorkerForHost:host]];