close sensors when it's done (#1367)

old-commit-hash: 24495a2278
vw-mqb-aeb
Dean Lee 5 years ago committed by GitHub
parent a072639865
commit 7f561f2d3d
  1. 2
      selfdrive/sensord/sensors.cc
  2. 2
      selfdrive/ui/ui.cc

@ -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:

Loading…
Cancel
Save