am c101c56e: Use resetConnections with resetMask.

* commit 'c101c56ecc4d6a0440225ed8550faa09dc4cd81b':
  Use resetConnections with resetMask.
This commit is contained in:
Wink Saville
2011-07-08 09:40:08 -07:00
committed by Android Git Automerger
3 changed files with 29 additions and 8 deletions

View File

@@ -1449,8 +1449,10 @@ public class ConnectivityService extends IConnectivityManager.Stub {
if (linkProperties != null) {
String iface = linkProperties.getInterfaceName();
if (TextUtils.isEmpty(iface) == false) {
if (DBG) log("resetConnections(" + iface + ")");
NetworkUtils.resetConnections(iface);
if (DBG) {
log("resetConnections(" + iface + ", NetworkUtils.RESET_ALL_ADDRESSES)");
}
NetworkUtils.resetConnections(iface, NetworkUtils.RESET_ALL_ADDRESSES);
}
}
}