Merge "Detach pollThread only if it is joinable" into pie-vts-dev

This commit is contained in:
Treehugger Robot
2019-05-22 15:02:02 +00:00
committed by Gerrit Code Review

View File

@@ -105,7 +105,9 @@ void SensorsHidlEnvironment::HidlTearDown() {
if (stopThread) {
*stopThread = true;
}
pollThread.detach();
if (pollThread.joinable()) {
pollThread.detach();
}
}
void SensorsHidlEnvironment::resetHal() {