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

Commit bb611488 authored by Kevin Tang's avatar Kevin Tang Committed by Siddharth Ray
Browse files

GnssLocationProvider metrics race condition fix

setting mLastFixTime = 0 in stopNavigating() introduces race condition where
if a fix is reported back from HAL milliseconds after stopNavigating() is
called, there will be a long TTFF calculated.

Bug: 70747938
Change-Id: I4868fd5ff6a1c072581e7825ac48ff1878833436
parent a54e54dc
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1582,7 +1582,6 @@ public class GnssLocationProvider implements LocationProviderInterface {
            mStarted = false;
            mSingleShot = false;
            native_stop();
            mTimeToFirstFix = 0;
            mLastFixTime = 0;

            // reset SV count to zero