diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2014-07-17 16:11:38 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2014-07-18 21:14:04 +0000 |
commit | 1fd9aeef08fac363ec3ef2eb61cea519a04c51fd (patch) | |
tree | 8afb4159c2809c4dc2e48ca6462d81d45dfaca5f /services/core/java/com/android/server/connectivity/NetworkMonitor.java | |
parent | 3e2a9f79582a19319328e1d17c72f12588c52197 (diff) | |
download | frameworks_base-1fd9aeef08fac363ec3ef2eb61cea519a04c51fd.zip frameworks_base-1fd9aeef08fac363ec3ef2eb61cea519a04c51fd.tar.gz frameworks_base-1fd9aeef08fac363ec3ef2eb61cea519a04c51fd.tar.bz2 |
Quit NetworkMonitors at end of life.
We were creating and orphaning a thread for each network.
Cleanup after ourselves.
bug:16119890
Change-Id: I8c8a9fe471e43f31f712844915992084074e8047
Diffstat (limited to 'services/core/java/com/android/server/connectivity/NetworkMonitor.java')
-rw-r--r-- | services/core/java/com/android/server/connectivity/NetworkMonitor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/connectivity/NetworkMonitor.java b/services/core/java/com/android/server/connectivity/NetworkMonitor.java index 545723a..5260185 100644 --- a/services/core/java/com/android/server/connectivity/NetworkMonitor.java +++ b/services/core/java/com/android/server/connectivity/NetworkMonitor.java @@ -249,8 +249,8 @@ public class NetworkMonitor extends StateMachine { transitionTo(mEvaluatingState); break; case CMD_NETWORK_DISCONNECTED: - if (DBG) log("Disconnected"); - transitionTo(mOfflineState); + if (DBG) log("Disconnected - quitting"); + quit(); break; case CMD_FORCE_REEVALUATION: if (DBG) log("Forcing reevaluation"); |