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

Commit 26c76353 authored by Yu-Han Yang's avatar Yu-Han Yang
Browse files

Detach thread so stop_measurement doesn't block

Bug: 187361220
Test: atest android.location.cts.fine.LocationManagerFineTest.testRegisterGnssMeasurementsCallback --iterations=100

Change-Id: I02952c24cc5245375a75675e0a7fad02f1741e0d
parent df759a03
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -69,6 +69,7 @@ void GnssMeasurementInterface::start(const bool enableCorrVecOutputs) {
            std::this_thread::sleep_for(std::chrono::milliseconds(mMinIntervalMillis));
        }
    });
    mThread.detach();
}

void GnssMeasurementInterface::stop() {