diff --git a/dom/bluetooth/BluetoothService.cpp b/dom/bluetooth/BluetoothService.cpp index bd816e07d1a..035dd19b582 100644 --- a/dom/bluetooth/BluetoothService.cpp +++ b/dom/bluetooth/BluetoothService.cpp @@ -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.