diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2017-06-22 18:17:10 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2017-06-22 18:17:11 +0000 |
commit | 04a28216641bf293a200aa06d7f996334c2d9c5c (patch) | |
tree | 39695df531bc1546ea798beffaf15e0495d84df7 /service | |
parent | 4e4877e53cfa499204bf4603c7b79b6caa83df76 (diff) | |
parent | 3ee9c5a0673fdf963f7be80a64d96e21796f4350 (diff) |
Merge "WifiStateTracker: handle RejectedExecutionException" into oc-dr1-dev
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/WifiStateTracker.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/service/java/com/android/server/wifi/WifiStateTracker.java b/service/java/com/android/server/wifi/WifiStateTracker.java index 317aa262a..479d169ef 100644 --- a/service/java/com/android/server/wifi/WifiStateTracker.java +++ b/service/java/com/android/server/wifi/WifiStateTracker.java @@ -22,6 +22,8 @@ import android.util.Log; import com.android.internal.app.IBatteryStats; +import java.util.concurrent.RejectedExecutionException; + /** * This class is used to track WifiState to update BatteryStats */ @@ -46,6 +48,8 @@ public class WifiStateTracker { mBatteryStats.noteWifiState(state, null); } catch (RemoteException e) { Log.e(TAG, "Battery stats unreachable " + e.getMessage()); + } catch (RejectedExecutionException e) { + Log.e(TAG, "Battery stats executor is being shutdown " + e.getMessage()); } } |