File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
services/java/com/android/server/net Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -616,10 +616,12 @@ public void advisePersistThreshold(long thresholdBytes) {
616616 // persist if beyond new thresholds
617617 final long currentTime = mTime .hasCache () ? mTime .currentTimeMillis ()
618618 : System .currentTimeMillis ();
619- mDevRecorder .maybePersistLocked (currentTime );
620- mXtRecorder .maybePersistLocked (currentTime );
621- mUidRecorder .maybePersistLocked (currentTime );
622- mUidTagRecorder .maybePersistLocked (currentTime );
619+ synchronized (mStatsLock ) {
620+ mDevRecorder .maybePersistLocked (currentTime );
621+ mXtRecorder .maybePersistLocked (currentTime );
622+ mUidRecorder .maybePersistLocked (currentTime );
623+ mUidTagRecorder .maybePersistLocked (currentTime );
624+ }
623625
624626 // re-arm global alert
625627 registerGlobalAlert ();
You can’t perform that action at this time.
0 commit comments