mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 822754 - Fix B2G AutoMounter to deal with out-of-order events. r=philikon
This commit is contained in:
parent
b18e38dae1
commit
3ea5f09112
@ -52,12 +52,13 @@ Volume::SetMediaPresent(bool aMediaPresent)
|
||||
// The AutoMounter needs to know whether the media is present or not when
|
||||
// processing the Idle state.
|
||||
|
||||
if (mMediaPresent != aMediaPresent) {
|
||||
LOG("Volume: %s media %s", NameStr(), aMediaPresent ? "inserted" : "removed");
|
||||
mMediaPresent = aMediaPresent;
|
||||
// No need to broadcast the change. A state change will be coming right away,
|
||||
// and that will serve the purpose.
|
||||
if (mMediaPresent == aMediaPresent) {
|
||||
return;
|
||||
}
|
||||
|
||||
LOG("Volume: %s media %s", NameStr(), aMediaPresent ? "inserted" : "removed");
|
||||
mMediaPresent = aMediaPresent;
|
||||
mEventObserverList.Broadcast(this);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user