mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 10:05:19 +00:00
Merge "Detach pollThread only if it is joinable" into pie-vts-dev
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