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

Commit fb0caad4 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Ack, wrap advisePersistThreshold() in lock." into jb-dev

parents ee00b31a 5801597a
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -616,10 +616,12 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
        // persist if beyond new thresholds
        final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis()
                : System.currentTimeMillis();
        synchronized (mStatsLock) {
            mDevRecorder.maybePersistLocked(currentTime);
            mXtRecorder.maybePersistLocked(currentTime);
            mUidRecorder.maybePersistLocked(currentTime);
            mUidTagRecorder.maybePersistLocked(currentTime);
        }

        // re-arm global alert
        registerGlobalAlert();