mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 738102 - devicemotion causes shutdown crash. r=jdm
This commit is contained in:
parent
3f258f18bb
commit
b455a8dbc5
@ -33,7 +33,11 @@ void UpdateHandler(nsITimer *aTimer, void *aClosure)
|
||||
}
|
||||
|
||||
void
|
||||
EnableSensorNotifications(SensorType aSensor) {
|
||||
EnableSensorNotifications(SensorType aSensor)
|
||||
{
|
||||
if (aSensor != SENSOR_ACCELERATION)
|
||||
return;
|
||||
|
||||
if (sUpdateTimer)
|
||||
return;
|
||||
|
||||
@ -49,7 +53,11 @@ EnableSensorNotifications(SensorType aSensor) {
|
||||
}
|
||||
|
||||
void
|
||||
DisableSensorNotifications(SensorType aSensor) {
|
||||
DisableSensorNotifications(SensorType aSensor)
|
||||
{
|
||||
if (aSensor != SENSOR_ACCELERATION)
|
||||
return;
|
||||
|
||||
if (sUpdateTimer) {
|
||||
sUpdateTimer->Cancel();
|
||||
NS_RELEASE(sUpdateTimer);
|
||||
|
Loading…
Reference in New Issue
Block a user