Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf4a2880 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 0d292526 a2019c16
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -105,8 +105,10 @@ void SensorsHidlEnvironment::HidlTearDown() {
    if (stopThread) {
        *stopThread = true;
    }
    if (pollThread.joinable()) {
        pollThread.detach();
    }
}

void SensorsHidlEnvironment::resetHal() {
  // wait upto 100ms * 10 = 1s for hidl service.