Merge "Fixes a thread safety issue (a time-of-check-time-of-use bug) in BatteryExternalStatsWorker that causes system_server crashes in VROS device."

This commit is contained in:
Treehugger Robot
2023-05-05 02:13:27 +00:00
committed by Gerrit Code Review

View File

@@ -399,7 +399,7 @@ class BatteryExternalStatsWorker implements BatteryStatsImpl.ExternalStatsSync {
} }
} }
public void shutdown() { public synchronized void shutdown() {
mExecutorService.shutdownNow(); mExecutorService.shutdownNow();
} }