From 2d02ce2a1b2496955bc9b538e1e0eec1a76cee7f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 9 Jul 2015 23:48:18 -0700 Subject: [PATCH] Change the PC status to offline and return to the host selection screen if server info or applist is unavailable --- Limelight/ViewControllers/MainFrameViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 2674d35d..f294a9ba 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -87,6 +87,8 @@ static NSArray* appList; [applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]]; [self presentViewController:applistAlert animated:YES completion:nil]; }); + _selectedHost.online = NO; + [self showHostSelectionView]; } else { dispatch_async(dispatch_get_main_queue(), ^{ _computerNameButton.title = _selectedHost.name; @@ -150,6 +152,8 @@ static NSArray* appList; [applistAlert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:nil]]; [self presentViewController:applistAlert animated:YES completion:nil]; }); + host.online = NO; + [self showHostSelectionView]; } else { Log(LOG_D, @"server info pair status: %@", [serverInfoResp getStringTag:@"PairStatus"]); if ([[serverInfoResp getStringTag:@"PairStatus"] isEqualToString:@"1"]) {