universal7885: parts-aidl: Don't call ->detach()

According to cppreference.com, detach allows the thread to operate independently of thread handle, which is not our intent since we need it completely under control
https://en.cppreference.com/w/cpp/thread/thread/detach
This commit is contained in:
roynatech2544 2022-10-11 12:38:03 +09:00
commit b9b9d7edcf

View file

@ -33,7 +33,6 @@ void SmartChargeImpl::start(void) {
shouldRun = true;
monitor = new std::thread(battery_monitor, limit_percent, restart_percent,
&charge_limit_cnt, &restart_cnt);
monitor->detach();
}
void SmartChargeImpl::stop(void) {