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

Commit 5cd35919 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: 4d628b86

* commit '4d628b86':
  Build JobStatus objects outside the lock

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


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