Skip to content

Commit

Permalink
(ios) Fix miloproductionsinc#6 This should have been fixed with milop…
Browse files Browse the repository at this point in the history
…roductionsinc#5 but the test that covered this case was effectively skipped.  So the test now works properly and you can control the media after an app restart.
  • Loading branch information
Lindsay-Needs-Sleep committed Jan 21, 2020
1 parent 35f622a commit e343fee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ios/ChromecastSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,9 @@ - (void)sessionManager:(GCKSessionManager *)sessionManager didResumeCastSession:
// ios randomly resumes current session, don't trigger SESSION_LISTENER in this case
return;
}
[self setSession:session];
// Do all the setup/configuration required when we get a session
[self sessionManager:sessionManager didStartCastSession:session];
// trigger the SESSION_LISTENER event
[self.sessionListener onSessionRejoin:[CastUtilities createSessionObject:session]];
}

Expand Down
1 change: 0 additions & 1 deletion tests/www/js/tests_manual_primary_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@
{ id: session_listener, repeats: false }
], function () {
finished = true;
utils.storeValue(cookieName, ++runningNum);
done();
});
var apiConfig = new chrome.cast.ApiConfig(
Expand Down

0 comments on commit e343fee

Please sign in to comment.