Bluez doesn't handle disconnect while connecting well.

Defer the message.

Bug: 3076404
Change-Id: Id62e1008346f492a85e714240a832a061def1786
This commit is contained in:
Jaikumar Ganesh
2010-10-12 16:58:06 -07:00
parent 844a6b3cca
commit adbda6f094

View File

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