now parse server info into host object all at once

This commit is contained in:
Diego Waxemberg committed 2015-01-08 23:58:04 -05:00
1 parent b7fcce08d6
commit 60cba0399d
5 files changed
+61 -20

No files matched your search

+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];
}