Skip to content
Snippets Groups Projects
Commit 99d0547b authored by Doug Turner's avatar Doug Turner
Browse files

Bug 738102 - devicemotion causes shutdown crash. r=jdm

parent f5cba37b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment