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

Commit 7a2b3ede authored by Wally Yau's avatar Wally Yau Committed by android-build-merger
Browse files

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

am: cf4a2880

Change-Id: I9845ff5af2235cfbdb92c0a066a4960d1dfdc2d5
parents 28619c38 cf4a2880
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.