Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 124e2872 authored by Wink Saville's avatar Wink Saville
Browse files

Do not merge: Have createAllDataConnectionList create the RetryManager inside the loop.

Change-Id: I131c8323737b0b5122a5087c77d8c6102d74b138
parent 321b730a
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -729,9 +729,10 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
    private void createAllDataConnectionList() {
        CdmaDataConnection dataConn;

        /** TODO: Use one retry manager for all connections for now */
        String retryConfig = SystemProperties.get("ro.cdma.data_retry_config");
        for (int i = 0; i < DATA_CONNECTION_POOL_SIZE; i++) {
            RetryManager rm = new RetryManager();
        if (!rm.configure(SystemProperties.get("ro.cdma.data_retry_config"))) {
            if (!rm.configure(retryConfig)) {
                if (!rm.configure(DEFAULT_DATA_RETRY_CONFIG)) {
                    // Should never happen, log an error and default to a simple linear sequence.
                    log("Could not configure using DEFAULT_DATA_RETRY_CONFIG="
@@ -740,9 +741,7 @@ public final class CdmaDataConnectionTracker extends DataConnectionTracker {
                }
            }

        for (int i = 0; i < DATA_CONNECTION_POOL_SIZE; i++) {
            int id = mUniqueIdGenerator.getAndIncrement();

            dataConn = CdmaDataConnection.makeDataConnection(mCdmaPhone, id, rm);
            mDataConnections.put(id, dataConn);
        }