Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize LocationGMS #536

Merged
merged 2 commits into from
May 16, 2018
Merged

Synchronize LocationGMS #536

merged 2 commits into from
May 16, 2018

Conversation

Nightsd01
Copy link
Contributor

@Nightsd01 Nightsd01 commented May 15, 2018

• The GoogleAPIClient instance in LocationGMS (accessed through a proxy via reflection) was being accessed before it was being connected due to a race condition
• Introduces synchronization to ensure access to the instance only occurs after it is initialized & connected.
Fixes #509


This change is Reviewable

• The GoogleAPIClient instance in LocationGMS (accessed through a proxy via reflection) was being accessed before it was being connected due to a race condition
• Introduces synchronization to ensure access to the instance only occurs after it is initialized & connected.
@Nightsd01 Nightsd01 requested a review from jkasten2 May 15, 2018 00:45
Copy link
Member

@jkasten2 jkasten2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

References to GoogleApiClient are the same instance in FusedLocationApiWrapper so they should be wrapped with synchronized.

• Adds synchronization to LocationUpdateListener, a class that also access the same instance of GoogleApiClient (from the previous commit)
@Nightsd01 Nightsd01 merged commit 48c94cd into master May 16, 2018
@jkasten2 jkasten2 deleted the location_sync branch June 13, 2019 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants