OSDN Git Service

In isMobileOk don't execute finally if mobile data is not supported.
authorWink Saville <wink@google.com>
Tue, 13 Aug 2013 19:41:06 +0000 (12:41 -0700)
committerWink Saville <wink@google.com>
Tue, 13 Aug 2013 19:41:06 +0000 (12:41 -0700)
commitafe58b07dbf9feb8d7396e26f271bf4e2a9447fa
treee59b576e43d2f76ba29751cafa5dd7bd8e728f7c
parentd1f6b6245c546f95a44d0252544ea9e2028a33b4
In isMobileOk don't execute finally if mobile data is not supported.

Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc
services/java/com/android/server/ConnectivityService.java