am c101c56e: Use resetConnections with resetMask.
* commit 'c101c56ecc':
Use resetConnections with resetMask.
This commit is contained in:
commit
a3b4b5ca19
1 changed files with 29 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue