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

Commit ae0edeb3 authored by Kenny Root's avatar Kenny Root Committed by Android Git Automerger
Browse files

am c88047bf: Merge "Move NTP updates outside locks"

* commit 'c88047bf':
  Move NTP updates outside locks
parents 10c29234 c88047bf
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -939,14 +939,14 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
    }

    private void performPoll(int flags) {
        synchronized (mStatsLock) {
            mWakeLock.acquire();

        // try refreshing time source when stale
        if (mTime.getCacheAge() > mSettings.getTimeCacheMaxAge()) {
            mTime.forceRefresh();
        }

        synchronized (mStatsLock) {
            mWakeLock.acquire();

            try {
                performPollLocked(flags);
            } finally {