fixed host online state and simplified some code

This commit is contained in:
Diego Waxemberg committed 2015-02-01 18:33:36 -05:00
1 parent 879f304a79
commit 337e5e3d9d
3 files changed
+11 -26

No files matched your search

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