OSDN Git Service

Tear down data, if a disconnect request is pending.
authorJaikumar Ganesh <jaikumar@google.com>
Fri, 15 May 2009 23:18:01 +0000 (16:18 -0700)
committerJaikumar Ganesh <jaikumar@google.com>
Fri, 15 May 2009 23:52:13 +0000 (16:52 -0700)
commitcaed8208bbcd3ba7226b49a4a40cf6d7d860746f
treee4f8502f61a0bdee3177d3cefcf6da7ecc0b1c59
parentb3c6addfc17be2a52133026148f3928ab97c83cb
Tear down data, if a disconnect request is pending.

If there is a pending disconnect, and the previous connection
attempt succeeds, we don't disconnect and hence the state remains
in DISCONNECTING. Ex: user is on Wifi, location app calls
enableApnType(SUPL) and then we set state to INITING. It then
calls disableApnType(SUPL) we register a pending disconnect.
When the data connection attempt is successful, we don't disconnect,
as the PDP Connection State has not been set to ACTIVE and we check
for this state. This fix removes the dependency on ACTIVE state check.
telephony/java/com/android/internal/telephony/gsm/PdpConnection.java