Bug 899949 - Failed to disconnect A2DP when turning off Bluetooth, r=echou

This commit is contained in:
Gina Yeh 2013-07-31 19:06:50 +08:00
parent 23fd930ee6
commit 00e2541d05

View File

@ -1850,8 +1850,7 @@ BluetoothDBusService::SendSinkMessage(const nsAString& aDeviceAddress,
{
MOZ_ASSERT(NS_IsMainThread());
MOZ_ASSERT(mConnection);
NS_ENSURE_TRUE(IsReady(), NS_ERROR_FAILURE);
MOZ_ASSERT(IsEnabled());
SinkCallback callback;
if (aMessage.EqualsLiteral("Connect")) {