Don't cancel the previous request if it's fulfilled.

In Rotation Resolver Manager, we incorrectly send addtional 'cancelled'
results to WOL. This change fixes that issue.

Bug: 191792497
Test: maually tested the feature.

Change-Id: I5de023d7cc5b8429d11d7037afa9d32a21f55762
This commit is contained in:
Yi Jiang
2021-06-28 14:34:41 -07:00
parent 4b61a18585
commit fca2a5555f

View File

@@ -109,7 +109,7 @@ final class RotationResolverManagerPerUserService extends
ensureRemoteServiceInitiated();
// Cancel the previous on-going request.
if (mCurrentRequest != null) {
if (mCurrentRequest != null && !mCurrentRequest.mIsFulfilled) {
cancelLocked();
}