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

Commit 8b4ca7a1 authored by Matthew Xie's avatar Matthew Xie
Browse files

Increase the setup-sdp delay to cover for all the devices.

20 ms worked well for GN hspa for stress test, but failed sometimes
for other platform. Increased it to 50ms. Tested on all the device types
bug 6438556

Change-Id: Ic5fcde3de7ea6d3d983edab7ae3df5684637bd20
parent 9cb376e7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -530,7 +530,7 @@ public class BluetoothService extends IBluetooth.Stub {
        // Bluetooth stack needs a small delay here before adding
        // SDP records, otherwise dbus stalls for over 30 seconds 1 out of 50 runs
        try {
            Thread.sleep(20);
            Thread.sleep(50);
        } catch (InterruptedException e) {}
        updateSdpRecords();
        return true;
@@ -602,7 +602,7 @@ public class BluetoothService extends IBluetooth.Stub {
        // Bluetooth stack need some a small delay here before adding more
        // SDP records, otherwise dbus stalls for over 30 seconds 1 out of 50 runs
        try {
            Thread.sleep(20);
            Thread.sleep(50);
        } catch (InterruptedException e) {}

        if (R.getBoolean(com.android.internal.R.bool.config_bluetooth_default_profiles)) {