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

Commit f2ed816d authored by jhtop.kim's avatar jhtop.kim Committed by Jaikumar Ganesh
Browse files

Bluetooth :fix opp for socket error retry

When the pin or link key missing case occurs,
we need to retry the socket connection. Use a timeout
of 1.5 secs instead of 2.5 secs because the ACL inactivity
timer is 2 secs.

Change-Id: I3d4c096bd823e3204e91040bea608e44471dd4ce
parent 9054dacb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -723,7 +723,7 @@ public class BluetoothOppTransfer implements BluetoothOppBatch.BluetoothOppBatch
                    if (!mRetry && e.getMessage().equals(SOCKET_LINK_KEY_ERROR)) {
                    if (!mRetry && e.getMessage().equals(SOCKET_LINK_KEY_ERROR)) {
                        Message msg = mSessionHandler.obtainMessage(SOCKET_ERROR_RETRY,
                        Message msg = mSessionHandler.obtainMessage(SOCKET_ERROR_RETRY,
                                channel, -1, device);
                                channel, -1, device);
                        mSessionHandler.sendMessageDelayed(msg, 2500);
                        mSessionHandler.sendMessageDelayed(msg, 1500);
                    } else {
                    } else {
                        BluetoothOppPreference.getInstance(mContext)
                        BluetoothOppPreference.getInstance(mContext)
                                .removeChannel(device, OPUSH_UUID16);
                                .removeChannel(device, OPUSH_UUID16);