Skip to content

Commit f48658a

Browse files
Wink SavilleThe Android Automerger
authored andcommitted
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 c292a61 commit f48658a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)