Bug 941416 - Fix regression of bug 936995, r=gyeh

This commit is contained in:
Eric Chou 2013-11-21 12:58:04 +08:00
parent ae0feee59c
commit 3acf0d2d68

View File

@ -153,6 +153,10 @@ public:
return NS_OK;
}
// Update mEnabled of BluetoothService object since
// StartInternal/StopInternal have been already done.
gBluetoothService->SetEnabled(mEnabled);
nsAutoString signalName;
signalName = mEnabled ? NS_LITERAL_STRING("Enabled")
: NS_LITERAL_STRING("Disabled");
@ -208,10 +212,6 @@ public:
}
}
// Update mEnabled of BluetoothService object since
// StartInternal/StopInternal have been already done.
gBluetoothService->SetEnabled(mEnabled);
// This is requested in Bug 836516. With settings this property, WLAN
// firmware could be aware of Bluetooth has been turned on/off, so that the
// mecahnism of handling coexistence of WIFI and Bluetooth could be started.