mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Verify mPollThread is joinable before detaching am: 65945cfb15
am: f75cf1cf4d
Change-Id: I8282d67898fffa2efff979250b10dde842511daa
This commit is contained in:
@@ -29,7 +29,9 @@ void SensorsHidlEnvironmentBase::HidlSetUp() {
|
||||
|
||||
void SensorsHidlEnvironmentBase::HidlTearDown() {
|
||||
mStopThread = true;
|
||||
mPollThread.detach();
|
||||
if (mPollThread.joinable()) {
|
||||
mPollThread.detach();
|
||||
}
|
||||
}
|
||||
|
||||
void SensorsHidlEnvironmentBase::catEvents(std::vector<Event>* output) {
|
||||
|
||||
Reference in New Issue
Block a user