Bug 942712 - Set gToggleInProgress to false when bt toggling is done, r=gyeh

This commit is contained in:
Eric Chou 2013-11-28 17:48:53 +08:00
parent 5fa589e2f7
commit 206a864559

View File

@ -156,6 +156,7 @@ public:
// Update mEnabled of BluetoothService object since
// StartInternal/StopInternal have been already done.
gBluetoothService->SetEnabled(mEnabled);
gToggleInProgress = false;
nsAutoString signalName;
signalName = mEnabled ? NS_LITERAL_STRING("Enabled")
@ -547,8 +548,6 @@ BluetoothService::SetEnabled(bool aEnabled)
}
mEnabled = aEnabled;
gToggleInProgress = false;
}
nsresult