mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-26 22:10:11 +00:00
Distinguish between offline and unknown hosts
This commit is contained in:
1 parent
a065c78b5f
commit
6d94897c21
7 files changed
+50
-17
No files matched your search
@@ -56,7 +56,7 @@
|
||||
if ([serverInfoResponse isStatusOk]) {
|
||||
host = [[TemporaryHost alloc] init];
|
||||
host.activeAddress = host.address = hostAddress;
|
||||
host.online = YES;
|
||||
host.state = StateOnline;
|
||||
[serverInfoResponse populateHost:host];
|
||||
if (![self addHostToDiscovery:host]) {
|
||||
callback(nil, @"Host information updated");
|
||||
@@ -137,7 +137,7 @@
|
||||
existingHost.externalAddress = host.externalAddress;
|
||||
}
|
||||
existingHost.activeAddress = host.activeAddress;
|
||||
existingHost.online = host.online;
|
||||
existingHost.state = host.state;
|
||||
return NO;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user