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; break;
} }
} }
sensors_close(device);
delete sensor_events_sock; delete sensor_events_sock;
delete c; delete c;
} }

@ -911,7 +911,7 @@ static void* light_sensor_thread(void *args) {
s->light_sensor = buffer[0].light; s->light_sensor = buffer[0].light;
} }
} }
sensors_close(device);
return NULL; return NULL;
fail: fail:

Loading…
Cancel
Save