Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a4b064d authored by Tanguy Pruvot's avatar Tanguy Pruvot
Browse files

Disable the IllegalStateException on route del

The frameworks often try to remove routes after deleting interfaces
Ignore this exception to reduce log errors.

Change-Id: I8d11598a83708b7689f1d29014f18784ad8c93f9
parent 4f2fa524
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -576,9 +576,13 @@ public class NetworkManagementService extends INetworkManagementService.Stub
        try {
        try {
            rsp = mConnector.doCommand(cmd.toString());
            rsp = mConnector.doCommand(cmd.toString());
        } catch (NativeDaemonConnectorException e) {
        } catch (NativeDaemonConnectorException e) {
            if (action != REMOVE) {
                throw new IllegalStateException(
                throw new IllegalStateException(
                    "Unable to communicate with native dameon to add routes - "
                    "Unable to communicate with native daemon to add routes - "
                    + e);
                    + e);
            } else {
                Log.w(TAG, "Unable to remove route on interface " + interfaceName);
            }
        }
        }


        if (DBG) {
        if (DBG) {