Merge "Catch correct exception for adding route fail" am: c2050ac731

Change-Id: Ic3c94ed56bf31b404bf0836e676a13f1e47edd3b
This commit is contained in:
Treehugger Robot
2020-02-15 06:33:04 +00:00

View File

@@ -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;