Leave NetworkStatsService around during shutdown.

We've seen system code continue to ask about network statistics
during a shutdown, so keep our objects around to avoid crashing
with NPEs.

Test: builds, boots
Bug: 73323432
Change-Id: I2654d37a59eb830ff32a2151ae6ad6a999a41677
This commit is contained in:
Jeff Sharkey
2018-02-16 16:28:25 -07:00
parent 5e58ea8a2f
commit a0626d7f40

View File

@@ -422,13 +422,6 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
mUidRecorder.forcePersistLocked(currentTime);
mUidTagRecorder.forcePersistLocked(currentTime);
mDevRecorder = null;
mXtRecorder = null;
mUidRecorder = null;
mUidTagRecorder = null;
mXtStatsCached = null;
mSystemReady = false;
}