mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Detach pollThread only if it is joinable" into pie-vts-dev
am: cf4a2880c9
Change-Id: I9845ff5af2235cfbdb92c0a066a4960d1dfdc2d5
This commit is contained in:
@@ -105,7 +105,9 @@ void SensorsHidlEnvironment::HidlTearDown() {
|
||||
if (stopThread) {
|
||||
*stopThread = true;
|
||||
}
|
||||
pollThread.detach();
|
||||
if (pollThread.joinable()) {
|
||||
pollThread.detach();
|
||||
}
|
||||
}
|
||||
|
||||
void SensorsHidlEnvironment::resetHal() {
|
||||
|
||||
Reference in New Issue
Block a user