Skip to content

Commit 1157e1a

Browse files
author
Wink Saville
committed
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
1 parent 2977579 commit 1157e1a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ protected void onActionIntentReconnectAlarm(Intent intent) {
157157

158158
if (dcac != null) {
159159
for (ApnContext apnContext : dcac.getApnListSync()) {
160+
apnContext.setDataConnectionAc(null);
161+
apnContext.setDataConnection(null);
160162
apnContext.setReason(reason);
161163
if (apnContext.getState() == State.FAILED) {
162164
apnContext.setState(State.IDLE);

0 commit comments

Comments
 (0)