mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
Fix race condition that could cause pairing state to be lost
If a mDNS response for a host happened during the period where we had removed the host from discovery, it would be re-added by mDNS without the pairing cert. Now we no longer completely remove the host and instead just remember that it's paused.
This commit is contained in:
1 parent
b833d3b3b7
commit
4aca666df4
3 files changed
+44
-7
No files matched your search
@@ -24,6 +24,8 @@
|
||||
- (void) resetDiscoveryState;
|
||||
- (BOOL) addHostToDiscovery:(TemporaryHost*)host;
|
||||
- (void) removeHostFromDiscovery:(TemporaryHost*)host;
|
||||
- (void) pauseDiscoveryForHost:(TemporaryHost *)host;
|
||||
- (void) resumeDiscoveryForHost:(TemporaryHost *)host;
|
||||
- (void) discoverHost:(NSString*)hostAddress withCallback:(void (^)(TemporaryHost*, NSString*))callback;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user