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++) {
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user