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

Commit 996bca5a authored by Christopher Tate's avatar Christopher Tate Committed by android-build-merger
Browse files

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

am: 9c7d3987

* commit '9c7d3987':
  Build JobStatus objects outside the lock

Change-Id: I9773852423969eb1f9148d10e8bec2790cdac99d
parents c21130f3 9c7d3987
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -224,10 +224,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. */