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

Commit c44187cf authored by Subramanian Srinivasan's avatar Subramanian Srinivasan Committed by Steve Kondik
Browse files

Increases Gatt connection timeout value to be 30 secs

Some LE devices take more time to establish
LE connection. This change increases the
connection timeout value to take care of
this scenario.

Change-Id: Ie4cc79b53301f230553df02afd5d64dec637fe5d
CRs-fixed: 582556
parent 72283a33
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -59,7 +59,7 @@ public final class BluetoothLwPwrProximityMonitor implements QBluetoothAdapter.
    private final Object mStateLock = new Object();
    /* This timer is triggered in case that BluetoothGatt does not callback when we perform connect/disconnect */
    private Timer     mTimer = null;
    private final int mTimeOutValue = 10*1000;
    private final int mTimeOutValue = 30*1000;
    private final class ConnectTimeOutTask extends TimerTask {
        public void run() {
            if (DBG) Log.d(TAG, "connect timer triggered!");
@@ -147,6 +147,7 @@ public final class BluetoothLwPwrProximityMonitor implements QBluetoothAdapter.
                                setTimer(BluetoothLwPwrProximityMonitor.this.new DisconnectTimeOutTask(), mTimeOutValue);
                            }
                        } else {
                            mState = MONITOR_STATE_IDLE;
                            stop = true;
                        }
                    }