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

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

am ae0edeb3: am c88047bf: Merge "Move NTP updates outside locks"

* commit 'ae0edeb3':
  Move NTP updates outside locks
parents d8f270a0 ae0edeb3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -940,14 +940,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 {