fixed host online state and simplified some code

This commit is contained in:
Diego Waxemberg
2015-02-01 18:33:36 -05:00
parent 879f304a79
commit 337e5e3d9d
3 changed files with 11 additions and 26 deletions
+1
View File
@@ -48,6 +48,7 @@
DataManager* dataMan = [[DataManager alloc] init];
host = [dataMan createHost];
host.address = hostAddress;
host.online = YES;
[serverInfoResponse populateHost:host];
if (![self addHostToDiscovery:host]) {
[dataMan removeHost:host];