commit | 5ccc801a97070322ec2895b2670a945da8bdd9ef | [log] [tgz] |
---|---|---|
author | Ramesh Sudini <ramesh.sudini@motorola.com> | Mon Apr 25 11:50:27 2011 -0500 |
committer | Wink Saville <wink@google.com> | Tue Apr 26 16:47:18 2011 -0700 |
tree | ff16e0a5a81833b1c5ae6ff5b6661801311829f9 | |
parent | e20c91de9ccb4a8cb76a8e72884f2e9ca001a2de [diff] |
Delay data reconnection after disconnected. Change-Id: Iede631b5e92a48883ef87c66dd79490e92ec196a
diff --git a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java index 223c8ad..8bae315 100644 --- a/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java +++ b/telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
@@ -1618,7 +1618,10 @@ 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); } }