From 3717228e28a7d7946d26d46dacd7ff644edf965c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 28 Dec 2018 00:32:19 -0800 Subject: [PATCH] Fix app grid running indicator not being correct immediately after returning from stream --- Limelight/ViewControllers/MainFrameViewController.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 0b8459f3..0e4b0065 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -345,8 +345,9 @@ static NSMutableSet* hostList; [self showHostSelectionView]; }); } else { - Log(LOG_D, @"server info pair status: %@", [serverInfoResp getStringTag:@"PairStatus"]); - if ([[serverInfoResp getStringTag:@"PairStatus"] isEqualToString:@"1"]) { + // Update the host object with this data + [serverInfoResp populateHost:host]; + if (host.pairState == PairStatePaired) { Log(LOG_I, @"Already Paired"); [self alreadyPaired]; } @@ -545,6 +546,10 @@ static NSMutableSet* hostList; // to look like the old error in that case, so the UI behaves. quitResponse.statusCode = 599; } + else if ([serverInfoResp isStatusOk]) { + // Update the host object with this info + [serverInfoResp populateHost:app.host]; + } } [self->_discMan addHostToDiscovery:app.host];