close sensors when it's done (#1367)
old-commit-hash: 24495a2278cd52a74d071b8ae7e571ba3563dece
This commit is contained in:
@@ -225,7 +225,7 @@ void sensor_loop() {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
sensors_close(device);
|
||||
delete sensor_events_sock;
|
||||
delete c;
|
||||
}
|
||||
|
||||
@@ -911,7 +911,7 @@ static void* light_sensor_thread(void *args) {
|
||||
s->light_sensor = buffer[0].light;
|
||||
}
|
||||
}
|
||||
|
||||
sensors_close(device);
|
||||
return NULL;
|
||||
|
||||
fail:
|
||||
|
||||
Reference in New Issue
Block a user