From ae1c83a01166111f0080a34acba43987583c3449 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 10 Jul 2015 11:52:27 -0700 Subject: [PATCH] Fix returning to the host selection screen after a failure --- Limelight/ViewControllers/MainFrameViewController.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 542e65fd..ade4d656 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -85,9 +85,9 @@ static NSArray* appList; preferredStyle:UIAlertControllerStyleAlert]; [applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]]; [self presentViewController:applistAlert animated:YES completion:nil]; + _selectedHost.online = NO; + [self showHostSelectionView]; }); - _selectedHost.online = NO; - [self showHostSelectionView]; } else { dispatch_async(dispatch_get_main_queue(), ^{ _computerNameButton.title = _selectedHost.name; @@ -150,9 +150,9 @@ static NSArray* appList; preferredStyle:UIAlertControllerStyleAlert]; [applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]]; [self presentViewController:applistAlert animated:YES completion:nil]; + host.online = NO; + [self showHostSelectionView]; }); - host.online = NO; - [self showHostSelectionView]; } else { Log(LOG_D, @"server info pair status: %@", [serverInfoResp getStringTag:@"PairStatus"]); if ([[serverInfoResp getStringTag:@"PairStatus"] isEqualToString:@"1"]) {