From eefde316de8d90fdd0a49ed06fc6b869a280cb53 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 15 Nov 2018 21:11:02 -0800 Subject: [PATCH] Fix bug that can cause spinner to get stuck --- Limelight/ViewControllers/MainFrameViewController.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index dc4ca67..abae369 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -326,13 +326,13 @@ static NSMutableSet* hostList; [Utils addHelpOptionToDialog:applistAlert]; [applistAlert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]]; - if (view != nil) { - // Only display an alert if this was the result of a real - // user action, not just passively entering the foreground again - [self hideLoadingFrame: ^{ + // Only display an alert if this was the result of a real + // user action, not just passively entering the foreground again + [self hideLoadingFrame: ^{ + if (view != nil) { [[self activeViewController] presentViewController:applistAlert animated:YES completion:nil]; - }]; - } + } + }]; host.online = NO; [self showHostSelectionView];