am e6572304: am 2753e826: Merge "Fix teardown of secondary connections on CDMA" into ics-mr1

* commit 'e65723044d6ad7fb2ff1bb760100a3cf40c6c5f2':
  Fix teardown of secondary connections on CDMA
This commit is contained in:
John Huang
2012-01-13 11:41:01 -08:00
committed by Android Git Automerger

View File

@@ -1038,8 +1038,10 @@ public abstract class DataConnectionTracker extends Handler {
didDisable = true;
}
}
if (didDisable && enabledCount == 0) {
onCleanUpConnection(true, apnId, Phone.REASON_DATA_DISABLED);
if (didDisable) {
if (enabledCount == 0) {
onCleanUpConnection(true, apnId, Phone.REASON_DATA_DISABLED);
}
// send the disconnect msg manually, since the normal route wont send
// it (it's not enabled)