Merge "Remove cancelled job from evaluation list." into tm-dev

This commit is contained in:
TreeHugger Robot
2022-04-11 15:36:34 +00:00
committed by Android (Google) Code Review

View File

@@ -1387,6 +1387,7 @@ public class JobSchedulerService extends com.android.server.SystemService
if (mPendingJobQueue.remove(cancelled)) { if (mPendingJobQueue.remove(cancelled)) {
mJobPackageTracker.noteNonpending(cancelled); mJobPackageTracker.noteNonpending(cancelled);
} }
mChangedJobList.remove(cancelled);
// Cancel if running. // Cancel if running.
mConcurrencyManager.stopJobOnServiceContextLocked( mConcurrencyManager.stopJobOnServiceContextLocked(
cancelled, reason, internalReasonCode, debugReason); cancelled, reason, internalReasonCode, debugReason);