summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-06-23 07:12:40 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-06-23 07:12:40 +0000
commitacddf19c29878be42525a0144cf60f94b8982539 (patch)
tree658a2f8a9f071a8154007b56291d2f6fe53b3f07
parenta41e3f080eaacd8a50130f6327704c40a29e8453 (diff)
parentee47a2bdd372e7ee677f8ceb3d7ed7d993e55d6b (diff)
downloadethernet-oreo-release.tar.gz
Change-Id: I0a415f4ddaf34e718eba581504c27548739e1204
-rw-r--r--java/com/android/server/ethernet/EthernetNetworkFactory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/com/android/server/ethernet/EthernetNetworkFactory.java b/java/com/android/server/ethernet/EthernetNetworkFactory.java
index 7ff3f6c..d6d0def 100644
--- a/java/com/android/server/ethernet/EthernetNetworkFactory.java
+++ b/java/com/android/server/ethernet/EthernetNetworkFactory.java
@@ -208,7 +208,7 @@ class EthernetNetworkFactory {
InterfaceConfiguration config = mNMService.getInterfaceConfig(iface);
if (config == null) {
- Log.e(TAG, "Null iterface config for " + iface + ". Bailing out.");
+ Log.e(TAG, "Null interface config for " + iface + ". Bailing out.");
return;
}
@@ -220,7 +220,9 @@ class EthernetNetworkFactory {
Log.e(TAG, "Interface unexpectedly changed from " + iface + " to " + mIface);
mNMService.setInterfaceDown(iface);
}
- } catch (RemoteException e) {
+ } catch (RemoteException | IllegalStateException e) {
+ // Either the system is crashing or the interface has disappeared. Just ignore the
+ // error; we haven't modified any state because we only do that if our calls succeed.
Log.e(TAG, "Error upping interface " + mIface + ": " + e);
}
}