mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 823455 - Patch 1: Fire ondisabled/onenabled event when toggling is failed, r=echou
This commit is contained in:
parent
312348755c
commit
d7405c6410
@ -430,15 +430,8 @@ BluetoothService::SetEnabled(bool aEnabled)
|
||||
* aEnabled: expected status of bluetooth
|
||||
*/
|
||||
if (mEnabled == aEnabled) {
|
||||
/**
|
||||
* The process of toggling should be over here, so we set gToggleInProgress
|
||||
* back to false here. Note that, we don't fire onenabled/ondisabled in
|
||||
* this case.
|
||||
*/
|
||||
NS_WARNING("Bluetooth has already been enabled/disabled before.\
|
||||
Skip fire onenabled/ondisabled events here.");
|
||||
gToggleInProgress = false;
|
||||
return;
|
||||
NS_WARNING("Bluetooth has already been enabled/disabled before\
|
||||
or the toggling is failed.");
|
||||
}
|
||||
|
||||
mEnabled = aEnabled;
|
||||
|
Loading…
Reference in New Issue
Block a user