-
Notifications
You must be signed in to change notification settings - Fork 418
Fixed AppIndexingUpdateService race condition
#149
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
Conversation
`AppindexingUpdateService` had a race condition because its call to `FirebaseAppIndex#update` is asynchronous, but `IntentService#onHandleIntent` is a synchronous method. The solution is to `Tasks#await` the `Task` that `FirebaseAppindex#update` returns.
|
@hborders LGTM will merge when green, thank you! |
|
@hborders the error here is: |
|
Fixed. Thanks for your patience. Please let me know if you'd like me to squash this. |
|
@hborders I can "squash and merge" through GitHub, thanks so much for taking the time to do this! |
|
Ah looks like the same issue as in the |
|
Fixed. Thanks again for your patience. I thought I could do this all from |
|
Soooo close: |
|
@hborders thank you! Merged. |
AppindexingUpdateServicehad a race condition because its call toFirebaseAppIndex#updateis asynchronous, butIntentService#onHandleIntentis a synchronous method. The solution is toTasks#awaittheTaskthatFirebaseAppindex#updatereturns.