am b42beeaf: am 54c5e169: In isMobileOk don\'t execute finally if mobile data is not supported.
* commit 'b42beeafcf8117fb4ac41dd91fc9e6113c0d6aae': In isMobileOk don't execute finally if mobile data is not supported.
This commit is contained in:
commit
85811798be
1 changed files with 6 additions and 6 deletions
|
|
@ -3732,13 +3732,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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue