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

Commit 5801597a authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Ack, wrap advisePersistThreshold() in lock.

Bug: 6449725
Change-Id: I702dc2ff9d4b237c46d89bcae41289bc3e9ef2f8
parent 3c5f9243
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();