Merge "Stop the actual job in question." into tm-dev am: 368b3a7c0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18191867 Change-Id: Ib86c6ca5f9701db5a89dd7778a7bd0cb1320ddc8 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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