Merge "Increase the setup-sdp delay to cover for all the devices." into jb-dev

This commit is contained in:
Matthew Xie
2012-05-17 21:49:55 -07:00
committed by Android (Google) Code Review

View File

@@ -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)) {