Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Guard against over calling pause or resume #8465

Merged
merged 2 commits into from
Mar 19, 2017

Conversation

boundsj
Copy link
Contributor

@boundsj boundsj commented Mar 18, 2017

Fixes #8464

Calls to the file source pause and resume method are triggered by UIApplicationDidEnterBackgroundNotification and UIApplicationWillEnterForegroundNotification notifications. Testing has shown that those notifications may happen more than once on device. This adds a local guard to protect against unbalanced calls to pause and resume.

boundsj added 2 commits March 17, 2017 23:24
Calls to the file source pause and resume method are triggered by
UIApplicationDidEnterBackgroundNotification and
UIApplicationWillEnterForegroundNotification notifications. Testing
has shown that those notifications may happen more than once
on device. This adds a local guard to protect against unbalanced
calls to pause and resume.
@boundsj boundsj added crash iOS Mapbox Maps SDK for iOS release blocker Blocks the next final release ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold labels Mar 18, 2017
@boundsj boundsj added this to the ios-v3.5.0 milestone Mar 18, 2017
@boundsj boundsj self-assigned this Mar 18, 2017
@mention-bot
Copy link

@boundsj, thanks for your PR! By analyzing this pull request, we identified @1ec5, @jfirebaugh and @friedbunny to be potential reviewers.

@boundsj boundsj removed the ⚠️ DO NOT MERGE Work in progress, proof of concept, or on hold label Mar 19, 2017
@boundsj boundsj merged commit 73ed8aa into release-ios-v3.5.0-android-v5.0.0 Mar 19, 2017
@boundsj boundsj deleted the boundsj-guard-pause-resume branch March 19, 2017 02:09
@boundsj
Copy link
Contributor Author

boundsj commented Mar 20, 2017

I filed https://openradar.appspot.com/31154381 as a dupe of https://openradar.appspot.com/14075101. In our case, the unexpected, multiple instances of UIApplicationWillEnterForegroundNotification were fatal until the patch in this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
crash iOS Mapbox Maps SDK for iOS release blocker Blocks the next final release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants