diff options
author | Wink Saville <wink@google.com> | 2012-06-20 23:47:40 -0700 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2012-07-13 14:19:00 -0700 |
commit | f48658aa174c36e0c2c1c96fd64303b085ec324a (patch) | |
tree | e8ac743e9de0f8b23da189f14a6f099f2056bf0e | |
parent | c292a619c71a2ee56e42ca5ef45fbc62e5c09f1e (diff) | |
download | base-f48658aa174c36e0c2c1c96fd64303b085ec324a.tar.gz |
When reconnecting disassociate dc and apnContext.
This is done in onActionIntentReconnectAlarm, which is called when
retrying after an error, by setting the ApnContext.DataConnection &
DataConnctionAc to null which intern clears the DataConnection.mApnList.
With the mApnList cleared DataConnection.mRefCount will not be incremented
because the DC will not be found by findReadyDataConnection. Thus fixing
at least one cause of 6529189.
Bug: 6529189
Change-Id: I40ff1966f6fbd2f69e97d77b9db7122e4c5b992f
-rw-r--r-- | telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java index 83fc9c1d3895..ed67759e3cc1 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java @@ -157,6 +157,8 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker { if (dcac != null) { for (ApnContext apnContext : dcac.getApnListSync()) { + apnContext.setDataConnectionAc(null); + apnContext.setDataConnection(null); apnContext.setReason(reason); if (apnContext.getState() == State.FAILED) { apnContext.setState(State.IDLE); |