зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1152098 - Ignore subsequent toggling requests if toggling is already in progress. r=btian
--HG-- extra : histedit_source : 62052c8ffd607ff9381980a0a4c5cd5af52f9b0a
This commit is contained in:
Родитель
db3a383adb
Коммит
931df00596
|
@ -571,6 +571,11 @@ BluetoothService::HandleSettingsChanged(nsISupports* aSubject)
|
|||
MOZ_ASSERT(false, "Expecting a boolean for 'bluetooth.enabled'!");
|
||||
return NS_ERROR_UNEXPECTED;
|
||||
}
|
||||
// Ignore bluetooth toggling request since toggling is already in progress.
|
||||
if (sToggleInProgress) {
|
||||
BT_LOGR("Ignore bluetooth toggling request since toggling is already in progress");
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
sToggleInProgress = true;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче