Merge "Stop the actual job in question." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
368b3a7c0a
@@ -959,7 +959,7 @@ class JobConcurrencyManager {
|
|||||||
for (int i = 0; i < mActiveServices.size(); i++) {
|
for (int i = 0; i < mActiveServices.size(); i++) {
|
||||||
JobServiceContext jsc = mActiveServices.get(i);
|
JobServiceContext jsc = mActiveServices.get(i);
|
||||||
final JobStatus executing = jsc.getRunningJobLocked();
|
final JobStatus executing = jsc.getRunningJobLocked();
|
||||||
if (executing != null && executing.matches(job.getUid(), job.getJobId())) {
|
if (executing == job) {
|
||||||
jsc.cancelExecutingJobLocked(reason, internalReasonCode, debugReason);
|
jsc.cancelExecutingJobLocked(reason, internalReasonCode, debugReason);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user