In isMobileOk don't execute finally if mobile data is not supported. am: 37e7312e12

Original change: undetermined

Change-Id: I402bf474fe46ddf2e6d55f1be81d9774117947b2
This commit is contained in:
Wink Saville
2021-05-31 06:29:39 +00:00
committed by Automerger Merge Worker

View File

@@ -3916,13 +3916,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
Random rand = new Random();
mParams = params;
try {
if (mCs.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) == false) {
log("isMobileOk: not mobile capable");
result = ConnectivityManager.CMP_RESULT_CODE_NO_CONNECTION;
return result;
}
if (mCs.isNetworkSupported(ConnectivityManager.TYPE_MOBILE) == false) {
log("isMobileOk: not mobile capable");
result = ConnectivityManager.CMP_RESULT_CODE_NO_CONNECTION;
return result;
}
try {
// Enable fail fast as we'll do retries here and use a
// hipri connection so the default connection stays active.
log("isMobileOk: start hipri url=" + params.mUrl);