Merge "Fix teardown of secondary connections on CDMA" into ics-mr1

This commit is contained in:
John Huang
2012-01-13 11:37:15 -08:00
committed by Android (Google) Code Review

View File

@@ -1029,8 +1029,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)