From 845af246b558351ae57a0f5f48013cda79bac892 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 16 Nov 2018 20:17:03 -0800 Subject: [PATCH] Fix a few cases where the loading frame could be left on-screen --- Limelight/ViewControllers/MainFrameViewController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index db84f7c..ceb74ec 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -119,6 +119,7 @@ static NSMutableSet* hostList; usingCachedAppList = true; dispatch_async(dispatch_get_main_queue(), ^{ if (host != self->_selectedHost) { + [self hideLoadingFrame: nil]; return; } @@ -146,6 +147,7 @@ static NSMutableSet* hostList; Log(LOG_W, @"Failed to get applist: %@", appListResp.statusMessage); dispatch_async(dispatch_get_main_queue(), ^{ if (host != self->_selectedHost) { + [self hideLoadingFrame: nil]; return; } @@ -165,6 +167,7 @@ static NSMutableSet* hostList; [self updateApplist:[appListResp getAppList] forHost:host]; if (host != self->_selectedHost) { + [self hideLoadingFrame: nil]; return; }