Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c7d3987 authored by Chris Tate's avatar Chris Tate Committed by android-build-merger
Browse files

Merge "Build JobStatus objects outside the lock" into nyc-dev am: 87ad1fce

am: 6dd6046b

* commit '6dd6046b':
  Build JobStatus objects outside the lock

Change-Id: I185a6e0b21c95ffddef692818eb72b86d1125f78
parents 9d53abbe 6dd6046b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -223,10 +223,11 @@ public class JobServiceContext extends IJobCallback.Stub implements ServiceConne
     * stop executing.
     */
    JobStatus getRunningJob() {
        final JobStatus job;
        synchronized (mLock) {
            return mRunningJob == null ?
                    null : new JobStatus(mRunningJob);
            job = mRunningJob;
        }
        return job == null ? null : new JobStatus(job);
    }

    /** Called externally when a job that was scheduled for execution should be cancelled. */