Delay data reconnection after disconnected.

Change-Id: Iede631b5e92a48883ef87c66dd79490e92ec196a
This commit is contained in:
Ramesh Sudini
2011-04-25 11:50:27 -05:00
committed by Wink Saville
parent e20c91de9c
commit 5ccc801a97

View File

@@ -1618,7 +1618,10 @@ public final class GsmDataConnectionTracker extends DataConnectionTracker {
if (apnContext.getPendingAction() == ApnContext.PENDING_ACTION_RECONNECT) {
apnContext.setPendingAction(ApnContext.PENDING_ACTION_NONE);
}
trySetupData(apnContext);
// Wait a bit before trying the next APN, so that
// we're not tying up the RIL command channel.
// This also helps in any external dependency to turn off the context.
sendMessageDelayed(obtainMessage(EVENT_TRY_SETUP_DATA, apnContext),APN_DELAY_MILLIS);
}
}