From adbda6f094bf957e2943f80ef63d4530f6fcfc5a Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Tue, 12 Oct 2010 16:58:06 -0700 Subject: [PATCH] Bluez doesn't handle disconnect while connecting well. Defer the message. Bug: 3076404 Change-Id: Id62e1008346f492a85e714240a832a061def1786 --- core/java/android/bluetooth/BluetoothDeviceProfileState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/bluetooth/BluetoothDeviceProfileState.java b/core/java/android/bluetooth/BluetoothDeviceProfileState.java index df1d960126626..ff82d39fc49f5 100644 --- a/core/java/android/bluetooth/BluetoothDeviceProfileState.java +++ b/core/java/android/bluetooth/BluetoothDeviceProfileState.java @@ -516,7 +516,7 @@ public final class BluetoothDeviceProfileState extends HierarchicalStateMachine } break; case DISCONNECT_A2DP_OUTGOING: - processCommand(DISCONNECT_A2DP_OUTGOING); + deferMessage(message); break; case DISCONNECT_A2DP_INCOMING: // Ignore, will be handled by Bluez