mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-22 16:17:47 +00:00
Fix "server busy" pairing error dialog
This commit is contained in:
1 parent
e89707e601
commit
1757359fbf
3 files changed
+11
-11
No files matched your search
@@ -56,8 +56,10 @@
|
||||
}
|
||||
static NSMutableSet* hostList;
|
||||
|
||||
- (void)showPIN:(NSString *)PIN {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
- (void)startPairing:(NSString *)PIN {
|
||||
// Needs to be synchronous to ensure the alert is shown before any potential
|
||||
// failure callback could be invoked.
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
self->_pairAlert = [UIAlertController alertControllerWithTitle:@"Pairing"
|
||||
message:[NSString stringWithFormat:@"Enter the following PIN on the host machine: %@", PIN]
|
||||
preferredStyle:UIAlertControllerStyleAlert];
|
||||
|
||||
Reference in new issue
Block a user