mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
Set host online immediately after using Add PC dialog to update host address
This commit is contained in:
@@ -117,6 +117,12 @@
|
||||
|
||||
TemporaryHost *existingHost = [self getHostInDiscovery:host.uuid];
|
||||
if (existingHost != nil) {
|
||||
// NB: Our logic here depends on the fact that we never propagate
|
||||
// the entire TemporaryHost to existingHost. In particular, when mDNS
|
||||
// discovers a PC and we poll it, we will do so over HTTP which will
|
||||
// not have accurate pair state. The fields explicitly copied below
|
||||
// are accurate though.
|
||||
|
||||
// Update address of existing host
|
||||
if (host.address != nil) {
|
||||
existingHost.address = host.address;
|
||||
@@ -128,6 +134,9 @@
|
||||
existingHost.externalAddress = host.externalAddress;
|
||||
}
|
||||
existingHost.activeAddress = host.activeAddress;
|
||||
|
||||
// Set the host online now
|
||||
existingHost.online = YES;
|
||||
return NO;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user