Bug 1173671 - just warn if we fail to remove old default routes. r=echen

--HG--
extra : commitid : Iipe6WgeqJn
This commit is contained in:
Jessica Jong 2015-06-18 14:53:47 +08:00
parent 43459f9dde
commit b121d4a6e9

View File

@ -1957,7 +1957,7 @@ CommandResult NetworkUtils::setDefaultRouteLegacy(NetworkParams& aOptions)
if (!aOptions.mOldIfname.IsEmpty()) {
// Remove IPv4's default route.
RETURN_IF_FAILED(mNetUtils->do_ifc_remove_default_route(GET_CHAR(mOldIfname)));
WARN_IF_FAILED(mNetUtils->do_ifc_remove_default_route(GET_CHAR(mOldIfname)));
// Remove IPv6's default route.
WARN_IF_FAILED(mNetUtils->do_ifc_remove_route(GET_CHAR(mOldIfname), "::", 0, NULL));
}