Merge "Remove spurious WTF on pre-U devices."

This commit is contained in:
Lorenzo Colitti
2023-06-07 09:00:13 +00:00
committed by Gerrit Code Review

View File

@@ -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();