Merge "Remove spurious WTF on pre-U devices."
This commit is contained in:
commit
c2851d45fd
1 changed files with 3 additions and 1 deletions
|
|
@ -4557,7 +4557,9 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
if (state == NetworkInfo.State.CONNECTED) return true;
|
||||
if (state != NetworkInfo.State.CONNECTING) {
|
||||
// TODO: throw if no WTFs are observed in the field.
|
||||
Log.wtf(TAG, "Uncreated network in invalid state: " + state);
|
||||
if (shouldCreateNetworksImmediately()) {
|
||||
Log.wtf(TAG, "Uncreated network in invalid state: " + state);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return nai.isVPN() || shouldCreateNetworksImmediately();
|
||||
|
|
|
|||
Loading…
Reference in a new issue