Merge "Stop the actual job in question." into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-13 22:30:33 +00:00
committed by Android (Google) Code Review

View File

@@ -959,7 +959,7 @@ class JobConcurrencyManager {
for (int i = 0; i < mActiveServices.size(); i++) {
JobServiceContext jsc = mActiveServices.get(i);
final JobStatus executing = jsc.getRunningJobLocked();
if (executing != null && executing.matches(job.getUid(), job.getJobId())) {
if (executing == job) {
jsc.cancelExecutingJobLocked(reason, internalReasonCode, debugReason);
return true;
}