now parse server info into host object all at once

This commit is contained in:
Diego Waxemberg
2015-01-08 23:58:04 -05:00
parent b7fcce08d6
commit 60cba0399d
5 changed files with 61 additions and 20 deletions
+1 -1
View File
@@ -46,7 +46,7 @@
DataManager* dataMan = [[DataManager alloc] init];
host = [dataMan createHost];
host.address = hostAddress;
[DiscoveryWorker updateHost:host withServerInfo:serverInfoData];
[HttpManager populateHostFromXML:serverInfoData host:host];
if (![self addHostToDiscovery:host]) {
[dataMan removeHost:host];
}