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

Commit c88047bf authored by Kenny Root's avatar Kenny Root Committed by Gerrit Code Review
Browse files

Merge "Move NTP updates outside locks"

parents 13fd8919 36bc5b67
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 {