Merge "Catch correct exception for adding route fail" am: c2050ac731 am: 55c0f41695
Change-Id: Idd25323e01d87b81fd1021bcd0ea29a2468eedaa
This commit is contained in:
@@ -756,7 +756,7 @@ public class IpServer extends StateMachine {
|
||||
final IpPrefix ipv4Prefix = new IpPrefix(mIpv4Address.getAddress(),
|
||||
mIpv4Address.getPrefixLength());
|
||||
NetdUtils.tetherInterface(mNetd, mIfaceName, ipv4Prefix);
|
||||
} catch (RemoteException | ServiceSpecificException e) {
|
||||
} catch (RemoteException | ServiceSpecificException | IllegalStateException e) {
|
||||
mLog.e("Error Tethering: " + e);
|
||||
mLastError = TetheringManager.TETHER_ERROR_TETHER_IFACE_ERROR;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user