commit | 122975639baa0dc602c567ce02f82c204dbfa50a | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Jul 17 03:10:42 2019 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Jul 17 03:10:42 2019 +0000 |
tree | 564d24a3bc25790e248feeb5072a5adb414716d8 | |
parent | afc30778700d0df93beaf40b28bc691dda2e4431 [diff] | |
parent | f75cf1cf4d32bb8c978d3fc3804240036f35bf9b [diff] |
Snap for 5733735 from f75cf1cf4d32bb8c978d3fc3804240036f35bf9b to qt-c2f2-release Change-Id: Ia23f5ba2ab5a3fbaf8326b0952ce91ec58c7fea8
diff --git a/sensors/common/vts/utils/SensorsHidlEnvironmentBase.cpp b/sensors/common/vts/utils/SensorsHidlEnvironmentBase.cpp index affdf8b..fa0e2e9 100644 --- a/sensors/common/vts/utils/SensorsHidlEnvironmentBase.cpp +++ b/sensors/common/vts/utils/SensorsHidlEnvironmentBase.cpp
@@ -29,7 +29,9 @@ void SensorsHidlEnvironmentBase::HidlTearDown() { mStopThread = true; - mPollThread.detach(); + if (mPollThread.joinable()) { + mPollThread.detach(); + } } void SensorsHidlEnvironmentBase::catEvents(std::vector<Event>* output) {